pub struct KVectorList { /* private fields */ }Expand description
Explicit wavelength-dependent transverse vectors in radians per metre.
Resolving with different optics preserves (kx, ky), not illumination angle.
Implementations§
Source§impl KVectorList
impl KVectorList
Sourcepub fn new(k_vectors: Vec<KVector>) -> Self
pub fn new(k_vectors: Vec<KVector>) -> Self
Stores source-order transverse vectors for validation during resolution.
Sourcepub fn source_count(&self) -> usize
pub fn source_count(&self) -> usize
Returns the number of vectors.
Sourcepub fn resolve(&self, optics: &Optics) -> Result<ResolvedSources>
pub fn resolve(&self, optics: &Optics) -> Result<ResolvedSources>
Validates propagating compatibility and resolves positive-z directions.
Trait Implementations§
Source§impl Clone for KVectorList
impl Clone for KVectorList
Source§fn clone(&self) -> KVectorList
fn clone(&self) -> KVectorList
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 KVectorList
impl Debug for KVectorList
Source§impl<'de> Deserialize<'de> for KVectorList
impl<'de> Deserialize<'de> for KVectorList
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 From<KVectorList> for SourceGeometry
impl From<KVectorList> for SourceGeometry
Source§fn from(value: KVectorList) -> Self
fn from(value: KVectorList) -> Self
Converts to this type from the input type.
Source§impl PartialEq for KVectorList
impl PartialEq for KVectorList
Source§fn eq(&self, other: &KVectorList) -> bool
fn eq(&self, other: &KVectorList) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for KVectorList
impl Serialize for KVectorList
impl StructuralPartialEq for KVectorList
Auto Trait Implementations§
impl Freeze for KVectorList
impl RefUnwindSafe for KVectorList
impl Send for KVectorList
impl Sync for KVectorList
impl Unpin for KVectorList
impl UnsafeUnpin for KVectorList
impl UnwindSafe for KVectorList
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