pub struct Retarder {
pub axis_deg: f64,
pub tx: f64,
pub ty: f64,
pub retardance: f64,
pub order: u32,
pub wl0: f64,
pub plates: Vec<Plate>,
}Expand description
偏光子・波長板の Jones 行列の元: 軸(axis_deg、x から y へ)の向きの振幅透過 tx、直交する向き ty、
軸の向きを速い軸とする遅延 φ = 2π·(order + retardance)·wl0/λ(ゼロ次は order 0)。
行列は R(−θ)·diag(tx·e^{+iφ/2}, ty·e^{−iφ/2})·R(θ)(遅い軸が位相 −。OpticStudio の伝播の位相 e^{−i2πnd/λ}・
厚さのある結晶板(Bire)と同じ向き)。
plates があれば(複屈折材の板)遅延は板ごとの Δn(λ)·d/λ で、行列は板の行列の積(光の通る順)
Fields§
§axis_deg: f64§tx: f64§ty: f64§retardance: f64設計波長での遅延 [波長](λ/4 板は 0.25、偏光子は 0)
order: u32多次の波長板の整数の次数(遅延は order + retardance 波長)
wl0: f64設計波長 [µm]
plates: Vec<Plate>複屈折材の板(空なら理想の遅延 order + retardance)
Implementations§
Source§impl Retarder
impl Retarder
Sourcepub fn resolve(&mut self, glasses: &HashMap<String, Glass>) -> Result<()>
pub fn resolve(&mut self, glasses: &HashMap<String, Glass>) -> Result<()>
板の常光・異常光のガラスを glasses から引く。厚さ 0 の板(1 枚だけのとき)は、設計波長の遅延
order + retardance から厚さを決める
Sourcepub fn plate_retardance(&self, wl: f64) -> Vec<f64>
pub fn plate_retardance(&self, wl: f64) -> Vec<f64>
設計波長での板ごとの遅延 [波長](速い軸から見た遅い軸の遅れ)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Retarder
impl<'de> Deserialize<'de> for Retarder
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 Retarder
impl JsonSchema for Retarder
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 Retarder
Auto Trait Implementations§
impl Freeze for Retarder
impl RefUnwindSafe for Retarder
impl Send for Retarder
impl Sync for Retarder
impl Unpin for Retarder
impl UnsafeUnpin for Retarder
impl UnwindSafe for Retarder
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