pub struct RaySpec {
pub field: FieldRef,
pub wave: Option<usize>,
pub px: Option<f64>,
pub py: Option<f64>,
pub surf: Option<usize>,
pub paraxial: Option<bool>,
pub to: Option<usize>,
pub q: String,
pub target: Option<f64>,
}Expand description
ray の項
Fields§
§field: FieldRef§wave: Option<usize>波長の番号。null・省略は主波長
px: Option<f64>正規化瞳座標(既定 0)
py: Option<f64>§surf: Option<usize>面の番号(物体 0、既定は像面)
paraxial: Option<bool>true で近軸光線(x・y を別々に近軸で追う。q は x・y・z・l・m・n・r・nl・nm・nn・tanx・tany、OpticStudio の PARX〜PATY)
to: Option<usize>面 surf から to まで(q は opth で面の間の光路長、aoi・aoe は min・max と面ごとに比べてはみ出しを足す)
q: String量(x・y・z・l・m・n。trax・tray・trar は主波長の主光線からのずれ、opth は光路長。gx〜gn はグローバル座標の交点と方向、 r は交点の半径、ang は z 軸との角 [rad]、tanx・tany は l/n・m/n、nl〜nn は面の法線、aoi・aoe は入射角・射出角 [度]、 cosi・cose はその cos)
target: Option<f64>Trait Implementations§
Source§impl<'de> Deserialize<'de> for RaySpec
impl<'de> Deserialize<'de> for RaySpec
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for RaySpec
impl JsonSchema for RaySpec
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for RaySpec
impl RefUnwindSafe for RaySpec
impl Send for RaySpec
impl Sync for RaySpec
impl Unpin for RaySpec
impl UnsafeUnpin for RaySpec
impl UnwindSafe for RaySpec
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more