pub struct Line<P, V> {
pub origin: P,
pub direction: V,
}Expand description
Infinite parametric line origin + t * direction.
The direction is deliberately not normalised on construction: import adapters preserve authored vectors, and normalising here would silently change the parameterisation a caller reasons about.
Fields§
§origin: PPoint at parameter zero.
direction: VParameter direction; import adapters may preserve a non-unit vector.
Trait Implementations§
impl<P, V> Copy for Line<P, V>
impl<P, V> StructuralPartialEq for Line<P, V>
Auto Trait Implementations§
impl<P, V> Freeze for Line<P, V>
impl<P, V> RefUnwindSafe for Line<P, V>where
P: RefUnwindSafe,
V: RefUnwindSafe,
impl<P, V> Send for Line<P, V>
impl<P, V> Sync for Line<P, V>
impl<P, V> Unpin for Line<P, V>
impl<P, V> UnwindSafe for Line<P, V>where
P: UnwindSafe,
V: UnwindSafe,
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