pub struct ResolvedIllumination { /* private fields */ }Expand description
Complete illumination state resolved for one optical configuration.
Implementations§
Source§impl ResolvedIllumination
impl ResolvedIllumination
Sourcepub const fn sources(&self) -> &ResolvedSources
pub const fn sources(&self) -> &ResolvedSources
Borrows resolved source geometry.
Sourcepub fn source_count(&self) -> usize
pub fn source_count(&self) -> usize
Returns the number of physical sources.
Sourcepub fn frame_count(&self) -> usize
pub fn frame_count(&self) -> usize
Returns the number of acquired frames.
Sourcepub fn is_multiplexed(&self) -> bool
pub fn is_multiplexed(&self) -> bool
Returns whether any frame combines more than one source.
Sourcepub fn frames(&self) -> &[ResolvedFrame]
pub fn frames(&self) -> &[ResolvedFrame]
Borrows canonical sparse frames.
Sourcepub fn source_power(&self) -> &[f64]
pub fn source_power(&self) -> &[f64]
Borrows explicit source powers, including default unit values.
Sourcepub fn frame_gains(&self) -> Vec<f64>
pub fn frame_gains(&self) -> Vec<f64>
Returns explicit frame gains, including default unit values.
Sourcepub fn directions(&self) -> &[[f64; 3]]
pub fn directions(&self) -> &[[f64; 3]]
Borrows resolved incident directions.
Sourcepub fn positions_m(&self) -> Option<&[[f64; 3]]>
pub fn positions_m(&self) -> Option<&[[f64; 3]]>
Borrows physical source positions when available.
Sourcepub fn k_vectors(&self) -> &[KVector]
pub fn k_vectors(&self) -> &[KVector]
Borrows transverse propagation vectors in radians per metre.
Sourcepub fn dense_weights(&self) -> Vec<Vec<f64>>
pub fn dense_weights(&self) -> Vec<Vec<f64>>
Allocates acquisition weights shaped (frame_count, source_count).
Trait Implementations§
Source§impl Clone for ResolvedIllumination
impl Clone for ResolvedIllumination
Source§fn clone(&self) -> ResolvedIllumination
fn clone(&self) -> ResolvedIllumination
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ResolvedIllumination
impl Debug for ResolvedIllumination
Source§impl<'de> Deserialize<'de> for ResolvedIllumination
impl<'de> Deserialize<'de> for ResolvedIllumination
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 PartialEq for ResolvedIllumination
impl PartialEq for ResolvedIllumination
Source§fn eq(&self, other: &ResolvedIllumination) -> bool
fn eq(&self, other: &ResolvedIllumination) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ResolvedIllumination
impl Serialize for ResolvedIllumination
impl StructuralPartialEq for ResolvedIllumination
Auto Trait Implementations§
impl Freeze for ResolvedIllumination
impl RefUnwindSafe for ResolvedIllumination
impl Send for ResolvedIllumination
impl Sync for ResolvedIllumination
impl Unpin for ResolvedIllumination
impl UnsafeUnpin for ResolvedIllumination
impl UnwindSafe for ResolvedIllumination
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