pub struct RayGrid {
pub g: usize,
pub ok: Vec<bool>,
pub xs: Vec<f64>,
pub ys: Vec<f64>,
pub sx: Vec<f64>,
pub sy: Vec<f64>,
pub l: Vec<Vec<f64>>,
pub ex: Vec<C64>,
pub ey: Vec<C64>,
pub mode_fallback: bool,
}Expand description
1 本の経路の光線の格子(瞳の G × G、番号 = iy·G + ix、瞳座標 −1 + 2·i/(G−1))
Fields§
§g: usize§ok: Vec<bool>検出面に届いた光線(瞳の円の外・ケラレ・開口の外は false)
xs: Vec<f64>検出面の局所座標の位置 [mm]
ys: Vec<f64>§sx: Vec<f64>ファイバ端での方向余弦(モードの重みに使う)
sy: Vec<f64>§l: Vec<Vec<f64>>[波長][光線] の光路長 [mm](波長 0 = 中心)。どの波長も中心波長の検出面の着地点 (xs, ys) での値(trace_jones が
波長ごとの着地点のずれを 1 次で直す)
ex: Vec<C64>検出面の局所 x・y の場(中心波長、約束は exp(−i k L))
ey: Vec<C64>§mode_fallback: bool無限遠物体で光線が 1 点に集まる面が見つからず、sx・sy に瞳の座標の 1e-4 倍を入れた(モードの重みが
ほぼ一様になる。trace_jones)
Implementations§
Trait Implementations§
impl StructuralPartialEq for RayGrid
Auto Trait Implementations§
impl Freeze for RayGrid
impl RefUnwindSafe for RayGrid
impl Send for RayGrid
impl Sync for RayGrid
impl Unpin for RayGrid
impl UnsafeUnpin for RayGrid
impl UnwindSafe for RayGrid
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