pub enum Intersection<F: Float, P: PointLike<F>> {
Point(P),
CollinearSegment(Line<F, P>),
Coincident(Line<F, P>),
}Expand description
An intersection between two Line.
Variants§
Implementations§
source§impl<F: Float, P: PointLike<F>> Intersection<F, P>
impl<F: Float, P: PointLike<F>> Intersection<F, P>
source§impl<F: Float, P: PointLike<F>> Intersection<F, P>
impl<F: Float, P: PointLike<F>> Intersection<F, P>
sourcepub fn new_collinear_segment(f0: Line<F, P>) -> Self
pub fn new_collinear_segment(f0: Line<F, P>) -> Self
Constructs a new Intersection::CollinearSegment.
source§impl<F: Float, P: PointLike<F>> Intersection<F, P>
impl<F: Float, P: PointLike<F>> Intersection<F, P>
sourcepub fn new_coincident(f0: Line<F, P>) -> Self
pub fn new_coincident(f0: Line<F, P>) -> Self
Constructs a new Intersection::Coincident.
Trait Implementations§
source§impl<F: Clone + Float, P: Clone + PointLike<F>> Clone for Intersection<F, P>
impl<F: Clone + Float, P: Clone + PointLike<F>> Clone for Intersection<F, P>
source§fn clone(&self) -> Intersection<F, P>
fn clone(&self) -> Intersection<F, P>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<F: PartialEq + Float, P: PartialEq + PointLike<F>> PartialEq for Intersection<F, P>
impl<F: PartialEq + Float, P: PartialEq + PointLike<F>> PartialEq for Intersection<F, P>
source§fn eq(&self, other: &Intersection<F, P>) -> bool
fn eq(&self, other: &Intersection<F, P>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl<F: Float, P: PointLike<F>> PrecisionRound for Intersection<F, P>
impl<F: Float, P: PointLike<F>> PrecisionRound for Intersection<F, P>
impl<F: Float, P: PointLike<F>> StructuralPartialEq for Intersection<F, P>
Auto Trait Implementations§
impl<F, P> RefUnwindSafe for Intersection<F, P>where
F: RefUnwindSafe,
P: RefUnwindSafe,
impl<F, P> Send for Intersection<F, P>
impl<F, P> Sync for Intersection<F, P>
impl<F, P> Unpin for Intersection<F, P>
impl<F, P> UnwindSafe for Intersection<F, P>where
F: UnwindSafe,
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