pub struct Line<F: Float + PartialEq, P: PointLike<F>> {
pub start: P,
pub end: P,
/* private fields */
}Expand description
A line segment from start to end.
See: PointLike
Fields§
§start: P§end: PImplementations§
Source§impl<F: Float, P: PointLike<F>> Line<F, P>
impl<F: Float, P: PointLike<F>> Line<F, P>
Sourcepub fn intersection(&self, other: &Self) -> IntersectionResult<F, P>
pub fn intersection(&self, other: &Self) -> IntersectionResult<F, P>
Compute the intersection between two line segments, if any.
Trait Implementations§
impl<F: Copy + Float + PartialEq, P: Copy + PointLike<F>> Copy for Line<F, P>
impl<F: Eq + Float + PartialEq, P: Eq + PointLike<F>> Eq for Line<F, P>
Auto Trait Implementations§
impl<F, P> Freeze for Line<F, P>where
P: Freeze,
impl<F, P> RefUnwindSafe for Line<F, P>where
P: RefUnwindSafe,
F: RefUnwindSafe,
impl<F, P> Send for Line<F, P>
impl<F, P> Sync for Line<F, P>
impl<F, P> Unpin for Line<F, P>
impl<F, P> UnwindSafe for Line<F, P>where
P: UnwindSafe,
F: 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