pub struct SourcePositionList { /* private fields */ }Expand description
Arbitrary physical source positions in sample coordinates, in metres.
Implementations§
Source§impl SourcePositionList
impl SourcePositionList
Sourcepub fn source_count(&self) -> usize
pub fn source_count(&self) -> usize
Returns the number of physical sources.
Sourcepub fn positions_m(&self) -> &[[f64; 3]]
pub fn positions_m(&self) -> &[[f64; 3]]
Borrows source positions as (x, y, z) values in metres.
Sourcepub fn resolve(&self, optics: &Optics) -> Result<ResolvedSources>
pub fn resolve(&self, optics: &Optics) -> Result<ResolvedSources>
Resolves positions to source-to-sample directions and transverse vectors.
Trait Implementations§
Source§impl Clone for SourcePositionList
impl Clone for SourcePositionList
Source§fn clone(&self) -> SourcePositionList
fn clone(&self) -> SourcePositionList
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 SourcePositionList
impl Debug for SourcePositionList
Source§impl<'de> Deserialize<'de> for SourcePositionList
impl<'de> Deserialize<'de> for SourcePositionList
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<SourcePositionList> for SourceGeometry
impl From<SourcePositionList> for SourceGeometry
Source§fn from(value: SourcePositionList) -> Self
fn from(value: SourcePositionList) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SourcePositionList
impl PartialEq for SourcePositionList
Source§fn eq(&self, other: &SourcePositionList) -> bool
fn eq(&self, other: &SourcePositionList) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SourcePositionList
impl Serialize for SourcePositionList
impl StructuralPartialEq for SourcePositionList
Auto Trait Implementations§
impl Freeze for SourcePositionList
impl RefUnwindSafe for SourcePositionList
impl Send for SourcePositionList
impl Sync for SourcePositionList
impl Unpin for SourcePositionList
impl UnsafeUnpin for SourcePositionList
impl UnwindSafe for SourcePositionList
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