pub struct TraceOpts {
pub vig: Option<[f64; 5]>,
pub upto: Option<usize>,
pub record: bool,
pub hxy: Option<(f64, f64)>,
}Expand description
System::trace_spec の選択(既定: ケラレ係数なし・像面まで・記録なし・視野の正規化座標なし)
Fields§
§vig: Option<[f64; 5]>ケラレ係数(VDX, VDY, VCX, VCY, VAN)
upto: Option<usize>止める面(None は像面)
record: bool面ごとの記録を残す
hxy: Option<(f64, f64)>視野の正規化座標(浮動開口・ケラレの補間に使う)
Implementations§
Source§impl TraceOpts
impl TraceOpts
pub fn new() -> Self
pub fn vig(self, v: [f64; 5]) -> Self
pub fn vig_opt(self, v: Option<[f64; 5]>) -> Self
pub fn upto(self, j: usize) -> Self
pub fn upto_opt(self, j: Option<usize>) -> Self
pub fn record(self) -> Self
pub fn record_if(self, b: bool) -> Self
pub fn hxy(self, h: (f64, f64)) -> Self
pub fn hxy_opt(self, h: Option<(f64, f64)>) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TraceOpts
impl RefUnwindSafe for TraceOpts
impl Send for TraceOpts
impl Sync for TraceOpts
impl Unpin for TraceOpts
impl UnsafeUnpin for TraceOpts
impl UnwindSafe for TraceOpts
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,
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