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