pub struct Trace {
pub rays: Vec<RayOut>,
pub parity: f64,
pub p0: Vec<V3>,
pub k0: Vec<V3>,
pub opl_os: Vec<f64>,
pub rec: Vec<RecSurf>,
pub last: usize,
pub hx_hy: (f64, f64),
}Expand description
光線の束の追跡結果
Fields§
§rays: Vec<RayOut>§parity: f64(-1)^(通過した鏡の数)
p0: Vec<V3>開始位置・方向(大域)
k0: Vec<V3>§opl_os: Vec<f64>OpticStudio の生の光路長(無限遠物体では面 1 の物体側座標系の z = 0 面から)
rec: Vec<RecSurf>面ごとの記録(record のとき)。無視しない面 1..=last(RecSel::Surfs ならそのうち指定の面)の順
last: usize§hx_hy: (f64, f64)Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Trace
impl RefUnwindSafe for Trace
impl Send for Trace
impl Sync for Trace
impl Unpin for Trace
impl UnsafeUnpin for Trace
impl UnwindSafe for Trace
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
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