pub enum Bire {
In {
mode: u8,
axis: [f64; 3],
ne: Vec<f64>,
},
Out,
}Expand description
複屈折材の板(OpticStudio の Birefringent In / Out の組)。入口の面の後の媒質(mat)が常光の材料、
mat-E が異常光の材料。Mode 0・2 は光線が常光の道を進み(屈折率 no)、出口の面で、板の中の光線の向き k と
結晶軸 a から決まる異常光の成分(a の k に垂直な向き)に、常光の成分に対して
exp(−i·2π·(n(θ) − no)·L/λ) の位相を付ける(OpticStudio の Mode 2、波長板モード)。
n(θ) = 1/√(cos²θ/no² + sin²θ/ne²)、θ は k と a の角、L は板の中の光線の長さ。Mode 0 は常光の成分だけを通す。
Mode 1・3 は光線が異常光の道を進む(入口・出口で波面法線の向きの屈折率 n(θ) で屈折し、板の中は
エネルギーの向きへ walk-off して進み、光路長は異常光で数える)。Mode 1 は異常光の成分だけを通し、Mode 3 は
常光の成分に異常光に対する位相を付ける(crate::trace の uniaxial)
Variants§
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Bire
impl<'de> Deserialize<'de> for Bire
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for Bire
impl JsonSchema for Bire
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for Bire
Auto Trait Implementations§
impl Freeze for Bire
impl RefUnwindSafe for Bire
impl Send for Bire
impl Sync for Bire
impl Unpin for Bire
impl UnsafeUnpin for Bire
impl UnwindSafe for Bire
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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