pub enum PupilSampling {
SquareGrid {
spacing: f64,
},
ChiefAndMarginalRays,
}Expand description
Specifies a pupil sampling method.
Variants§
SquareGrid
A square grid of rays in the the entrance pupil.
Spacing is the spacing between rays in the grid in normalized pupil distances, i.e. [0, 1]. A spacing of 1.0 means that one ray will lie at the pupil center (the chief ray), and the others will lie at the pupil edge (marginal rays).
ChiefAndMarginalRays
The chief and marginal rays.
Implementations§
Trait Implementations§
Source§impl Clone for PupilSampling
impl Clone for PupilSampling
Source§fn clone(&self) -> PupilSampling
fn clone(&self) -> PupilSampling
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PupilSampling
impl Debug for PupilSampling
Source§impl Default for PupilSampling
impl Default for PupilSampling
Source§impl<'de> Deserialize<'de> for PupilSampling
impl<'de> Deserialize<'de> for PupilSampling
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for PupilSampling
impl Serialize for PupilSampling
impl Copy for PupilSampling
Auto Trait Implementations§
impl Freeze for PupilSampling
impl RefUnwindSafe for PupilSampling
impl Send for PupilSampling
impl Sync for PupilSampling
impl Unpin for PupilSampling
impl UnwindSafe for PupilSampling
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