pub enum RefSurface {
Sphere {
center: V3,
radius: f64,
sign: f64,
},
Plane {
point: V3,
normal: V3,
},
Far {
center: V3,
},
Image,
}Expand description
OPD の基準の面。選び方は RefSurface::of の 1 か所(OPD の値・最適化の微分・Huygens PSF が同じものを使う)
Variants§
Sphere
射出瞳の参照球: 中心(参照の主光線の像点)、半径、σ(球が像点の前なら +1、後ろなら −1)
Plane
主光線に垂直な平面(アフォーカル像空間): 平面の上の点と法線(主光線の向き)
Far
半径が無限大の参照球(ROPD「無限遠」・射出瞳が無限遠): 中心(参照の主光線の像点)。参照球の半径を無限大にした 極限で、光線ごとに中心から光線へ下ろした垂線の足までの光路(像点との差の光線の向きの成分を引く。OpticStudio 26.1 の Reference OPD「Infinity」と一致)
Image
像面の上の光路長そのまま(アフォーカル像空間の ROPD 3「Absolute 2」。OpticStudio 26.1 と一致)
Implementations§
Source§impl RefSurface
impl RefSurface
Trait Implementations§
Source§impl Clone for RefSurface
impl Clone for RefSurface
impl Copy for RefSurface
Source§impl Debug for RefSurface
impl Debug for RefSurface
Source§impl PartialEq for RefSurface
impl PartialEq for RefSurface
impl StructuralPartialEq for RefSurface
Auto Trait Implementations§
impl Freeze for RefSurface
impl RefUnwindSafe for RefSurface
impl Send for RefSurface
impl Sync for RefSurface
impl Unpin for RefSurface
impl UnsafeUnpin for RefSurface
impl UnwindSafe for RefSurface
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