pub struct CoordinateSample<'a> { /* private fields */ }Expand description
A topology-aligned linear sample of two retained coordinate columns. Periodic reconstruction and alignment belong to the caller before sampling.
Implementations§
Source§impl<'a> CoordinateSample<'a>
impl<'a> CoordinateSample<'a>
Sourcepub fn new(
start: &'a [[f32; 3]],
end: &'a [[f32; 3]],
weight: f32,
) -> Result<Self, CoordinateSampleError>
pub fn new( start: &'a [[f32; 3]], end: &'a [[f32; 3]], weight: f32, ) -> Result<Self, CoordinateSampleError>
Validates metadata in O(1) while borrowing both original columns.
Individual coordinate triples are checked when read with Self::position.
§Errors
Refuses mismatched columns or an invalid interpolation weight.
Trait Implementations§
Source§impl<'a> Clone for CoordinateSample<'a>
impl<'a> Clone for CoordinateSample<'a>
impl<'a> Copy for CoordinateSample<'a>
Auto Trait Implementations§
impl<'a> Freeze for CoordinateSample<'a>
impl<'a> RefUnwindSafe for CoordinateSample<'a>
impl<'a> Send for CoordinateSample<'a>
impl<'a> Sync for CoordinateSample<'a>
impl<'a> Unpin for CoordinateSample<'a>
impl<'a> UnsafeUnpin for CoordinateSample<'a>
impl<'a> UnwindSafe for CoordinateSample<'a>
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