pub enum Launch<'a> {
Pupil {
spec: ObjSpec,
signed: bool,
px: &'a [f64],
py: &'a [f64],
vig: Option<[f64; 5]>,
hxy: Option<(f64, f64)>,
},
Stop {
spec: ObjSpec,
x: &'a [f64],
y: &'a [f64],
},
Rays {
p: &'a [[f64; 3]],
k: &'a [[f64; 3]],
},
}Expand description
光線の始め方
Variants§
Pupil
物体と正規化瞳座標(ケラレ係数 vig、None なら視野 hxy のもの(System::vig_factors)。エイミングは系の設定どおり)。
signed なら、入射瞳が物体より前(ENPP + 物体距離 < 0)の有限物体系で瞳座標の符号を反転して与える
(px = 1 が絞りの同じ側を通り、入射瞳が無限遠をまたいでも向きが連続。既定の false は OpticStudio と同じ)
Fields
Stop
物体と、絞り面の局所座標の点 (x, y) mm。その点を通る実光線を光線ごとに解く (系のエイミングの設定・入射瞳の位置によらない)。解けない光線は絞りで止まった扱い
Rays
開始位置と方向(大域座標。方向は規格化する)。光路長は開始位置から測る
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Launch<'a>
impl<'a> RefUnwindSafe for Launch<'a>
impl<'a> Send for Launch<'a>
impl<'a> Sync for Launch<'a>
impl<'a> Unpin for Launch<'a>
impl<'a> UnsafeUnpin for Launch<'a>
impl<'a> UnwindSafe for Launch<'a>
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,
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