pub struct Iface { /* private fields */ }Expand description
ある波長で用意した境界の係数
Implementations§
Source§impl Iface
impl Iface
Sourcepub fn eval_cos(&self, c0: f64) -> Result<[C64; 2]>
pub fn eval_cos(&self, c0: f64) -> Result<[C64; 2]>
入射角の cos(0〜1)での (s, p)。屈折率が実数の境界(膜なし)は角度を経由せず実数で計算する
(偏光追跡の面ごとの処理で、acos・複素数の計算を省く)。ほかは Self::eval と同じ
Sourcepub fn eval_cos_crystal(
&self,
c0: f64,
entering: bool,
n: f64,
) -> Result<[C64; 2]>
pub fn eval_cos_crystal( &self, c0: f64, entering: bool, n: f64, ) -> Result<[C64; 2]>
複屈折材の板の境界で、板の側の屈折率を n に置き換えた Self::eval_cos(異常光の成分の係数)。
entering = true は板へ入る面(後ろの媒質が板)、false は板から出る面(前の媒質が板)。
屈折率で決まる係数(膜なし・膜ファイルの層)だけ置き換え、理想膜・実測表・表・モデル・鏡は Self::eval_cos と同じ
Sourcepub fn eval_cos_media(
&self,
c0: f64,
n1: Option<f64>,
n2: Option<f64>,
) -> Result<[C64; 2]>
pub fn eval_cos_media( &self, c0: f64, n1: Option<f64>, n2: Option<f64>, ) -> Result<[C64; 2]>
前の媒質の屈折率を n1、後ろの媒質の屈折率を n2 に置き換えた Self::eval_cos(None は置き換えない)。
複屈折材の板の境界と、板どうしの貼り合わせの境界(前の板の o・e → 次の板の o・e)に使う。
置き換えるのは Self::eval_cos_crystal と同じく屈折率で決まる係数だけ
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Iface
impl !UnwindSafe for Iface
impl Freeze for Iface
impl Send for Iface
impl Sync for Iface
impl Unpin for Iface
impl UnsafeUnpin for Iface
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