pub enum LineIntersection<P: Point> {
SinglePoint {
intersection: P,
is_proper: bool,
},
Collinear {
intersection: Segment<P>,
},
}Expand description
A non-empty intersection between two line segments.
Variants§
SinglePoint
The segments meet at one point.
Fields
§
intersection: PThe intersection coordinate.
Collinear
The segments overlap along a collinear segment.
Trait Implementations§
Source§impl<P: Clone + Point> Clone for LineIntersection<P>
impl<P: Clone + Point> Clone for LineIntersection<P>
Source§fn clone(&self) -> LineIntersection<P>
fn clone(&self) -> LineIntersection<P>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<P: Copy + Point> Copy for LineIntersection<P>
impl<P: PartialEq + Point> StructuralPartialEq for LineIntersection<P>
Auto Trait Implementations§
impl<P> Freeze for LineIntersection<P>where
P: Freeze,
impl<P> RefUnwindSafe for LineIntersection<P>where
P: RefUnwindSafe,
impl<P> Send for LineIntersection<P>where
P: Send,
impl<P> Sync for LineIntersection<P>where
P: Sync,
impl<P> Unpin for LineIntersection<P>where
P: Unpin,
impl<P> UnsafeUnpin for LineIntersection<P>where
P: UnsafeUnpin,
impl<P> UnwindSafe for LineIntersection<P>where
P: 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