pub struct Tol {
pub label: String,
pub params: Vec<Param>,
pub lo: f64,
pub hi: f64,
pub relative: bool,
pub dist: Dist,
pub scale: Vec<f64>,
pub glass: Option<GlassShift>,
}Expand description
公差 1 つ
Fields§
§label: String表示の名前(“lens1 dx” など)
params: Vec<Param>同じずれを与えるパラメータ(1 つ以上)
lo: f64§hi: f64§relative: boolずれを今の値に対する比で与える
dist: Dist§scale: Vec<f64>パラメータごとにずれに掛ける数(空はすべて 1)。鏡で折り返して往復する玉の厚さのように、往きと戻りで同じずれを 逆の符号で与えるときに -1
glass: Option<GlassShift>ガラスの nd・vd のずれ(params は面の [dn] で、確かめと表示の面の番号だけに使う。ずれは面の dnd・dvd に足す。 scale・relative は使わない)
Implementations§
Source§impl Tol
impl Tol
Sourcepub fn sample_dist(&self) -> Dist
pub fn sample_dist(&self) -> Dist
抽選の分布(lensbench_runs::Dist。範囲 [lo, hi] の中心と半幅で表し直す)。円の中の分布は組の 1 成分
Trait Implementations§
impl StructuralPartialEq for Tol
Auto Trait Implementations§
impl Freeze for Tol
impl RefUnwindSafe for Tol
impl Send for Tol
impl Sync for Tol
impl Unpin for Tol
impl UnsafeUnpin for Tol
impl UnwindSafe for Tol
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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