Skip to main content

LensTol

Struct LensTol 

Source
pub struct LensTol {
    pub radius_rel: f64,
    pub focal_rel: f64,
    pub thickness: f64,
    pub wedge: f64,
    pub dn: f64,
    pub disp: f64,
    pub decenter: f64,
    pub tilt: f64,
    pub space: f64,
    pub wedge_first: bool,
}
Expand description

玉ごとの公差の組(各値は ±、0 なら作らない)

Fields§

§radius_rel: f64

曲率半径の比(面ごとに独立、0.002 = ±0.2%)

§focal_rel: f64

焦点距離の比(玉の曲率半径をすべて同じ比で変える。カタログの公差)

§thickness: f64

中心厚 [mm](玉の中のガラスの厚さごと)

§wedge: f64

面の傾き(くさび、玉の後ろの面の x・y の傾き)[deg]

§dn: f64

屈折率のずれ(ガラスごと)

§disp: f64

分散の相対変化(アッベ数の比に当たる、ガラスごと)

§decenter: f64

玉の偏心 x・y [mm]

§tilt: f64

玉の傾き x・y [deg]

§space: f64

玉の後の空気の間隔 [mm](次に玉がある場合)

§wedge_first: bool

くさびを玉の前の面に入れる(false は後ろの面)。前・後ろは玉のもとの向きで、裏返して置いた玉(lensbench_core::units::Unit::flipped) では系の中で光の通る順の逆(往復する玉は往きの範囲の順)

Implementations§

Source§

impl LensTol

Source

pub fn preset(name: &str) -> Result<LensTol>

既定の組: commercial(一般)・precision(精密)・high(高精度)。一般的な加工・組立の目安の値 (中心厚 ±0.15/0.05/0.025 mm、曲率半径 ±0.2/0.1/0.05%、くさび・傾き 3′/1′/0.5′、 屈折率 ±0.001/0.0005/0.0002、アッベ数 ±1/0.8/0.5%、偏心 ±0.1/0.05/0.02 mm、間隔 ±0.1/0.05/0.02 mm)

Trait Implementations§

Source§

impl Clone for LensTol

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for LensTol

Source§

impl Debug for LensTol

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for LensTol

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl PartialEq for LensTol

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for LensTol

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

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
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> WasmNotSend for T
where T: Send,

§

impl<T> WasmNotSendSync for T
where T: WasmNotSend + WasmNotSync,

§

impl<T> WasmNotSync for T
where T: Sync,