pub struct Line<S> {
pub point: TypedPoint2D<S, UnknownUnit>,
pub vector: TypedVector2D<S, UnknownUnit>,
}Expand description
An infinite line defined by a point and a vector.
Fields§
§point: TypedPoint2D<S, UnknownUnit>§vector: TypedVector2D<S, UnknownUnit>Implementations§
Source§impl<S> Line<S>where
S: Scalar,
impl<S> Line<S>where
S: Scalar,
pub fn intersection( &self, other: &Line<S>, ) -> Option<TypedPoint2D<S, UnknownUnit>>
pub fn signed_distance_to_point(&self, p: &TypedPoint2D<S, UnknownUnit>) -> S
pub fn distance_to_point(&self, p: &TypedPoint2D<S, UnknownUnit>) -> S
pub fn equation(&self) -> LineEquation<S>
Trait Implementations§
impl<S> Copy for Line<S>where
S: Copy,
Auto Trait Implementations§
impl<S> Freeze for Line<S>where
S: Freeze,
impl<S> RefUnwindSafe for Line<S>where
S: RefUnwindSafe,
impl<S> Send for Line<S>where
S: Send,
impl<S> Sync for Line<S>where
S: Sync,
impl<S> Unpin for Line<S>where
S: Unpin,
impl<S> UnwindSafe for Line<S>where
S: 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