pub enum Action<'a> {
Refract,
Reflect {
ghost: Option<&'a Reflect>,
},
Paraxial {
f: f64,
opd_mode: i32,
},
Jones(JonesSrc<'a>),
Binary2(Option<&'a Binary2>),
Fresnel(FresnelBend<'a>),
Birefringent(&'a Bire),
User(Option<&'a UserSurf>),
}Expand description
面の働き(Surface::action)。鏡([Surface::mirror])の Binary 2・Fresnel は Binary2・Fresnel のまま
(反射してから位相・傾きを加える)
Variants§
Refract
屈折(前後の媒質の屈折率で)
Reflect
反射(鏡)。ghost は屈折面での反射(ゴーストの経路の解析の写しだけ)の、光が入らない側の媒質
Paraxial
理想レンズ(焦点距離 f、OPD の求め方 opd_mode)
Jones(JonesSrc<'a>)
Jones 行列(方向は変えず、電場に行列をかける)
Binary2(Option<&'a Binary2>)
屈折・反射の後に位相 Φ で回折する(Binary 2)
Fresnel(FresnelBend<'a>)
屈折を別の面の傾きで決める(Fresnel・Cylinder Fresnel)
Birefringent(&'a Bire)
複屈折材の板の入口・出口(屈折は常光で、偏光の位相を板の中の道のりで)
User(Option<&'a UserSurf>)
利用者定義の面(登録のモデル)
Implementations§
Trait Implementations§
impl<'a> Copy for Action<'a>
impl<'a> StructuralPartialEq for Action<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Action<'a>
impl<'a> !UnwindSafe for Action<'a>
impl<'a> Freeze for Action<'a>
impl<'a> Send for Action<'a>
impl<'a> Sync for Action<'a>
impl<'a> Unpin for Action<'a>
impl<'a> UnsafeUnpin for Action<'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
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