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: Copy, V: Copy> Copy for Line<P, V>
Source§impl<'de, P, V> Deserialize<'de> for Line<P, V>where
P: Deserialize<'de>,
V: Deserialize<'de>,
impl<'de, P, V> Deserialize<'de> for Line<P, V>where
P: Deserialize<'de>,
V: Deserialize<'de>,
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
impl<P: PartialEq, V: PartialEq> 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> UnsafeUnpin for Line<P, V>where
P: UnsafeUnpin,
V: UnsafeUnpin,
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