pub struct Options {
pub fields: Option<Vec<usize>>,
pub waves: Option<Vec<usize>>,
pub fan: Fan,
pub rays: usize,
pub first: Option<usize>,
pub last: Option<usize>,
pub unfold: bool,
}Expand description
場面の作り方
Fields§
§fields: Option<Vec<usize>>視野(0 始まり、None で全視野)
waves: Option<Vec<usize>>波長(0 始まり、None で主波長だけ)
fan: Fan§rays: usize光線の本数(pupil の n)
first: Option<usize>描き始める面(None で自動: 有限の物体が近ければ物体面、ほかは面 1)
last: Option<usize>描き終える面(None で像面)
unfold: bool光路に沿って展開する(鏡・BS の反射で折れた後の区間を、折れる前の光軸の延長に並べ直す)。 反射ごとに鏡の頂点の接平面で鏡映するので、展開した区間は左右が裏返る(2D の断面図向け)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnsafeUnpin for Options
impl UnwindSafe for Options
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