Enum iron_shapes::redge::RLineIntersection[][src]

pub enum RLineIntersection<T: CoordinateType> {
    None,
    Point(Point<T>),
    Collinear,
}

Return type for the line-line intersection functions. Stores all possible results of a line to line intersection.

Variants

None

No intersection at all.

Point(Point<T>)

Intersection in a single point. Besides the intersection point also an other expression for the intersection point is given. The three values (a, b, c) describe the intersection point in terms of a starting point (the starting point of the edge which defines the line) and the direction of the edge multiplied by a fraction.

edge.start + edge.vector()*a/c == p and other_edge.start + other_edge.vector()*b/c == p.

Collinear

Lines are collinear.

Trait Implementations

impl<T: Clone + CoordinateType> Clone for RLineIntersection<T>[src]

impl<T: Copy + CoordinateType> Copy for RLineIntersection<T>[src]

impl<T: Debug + CoordinateType> Debug for RLineIntersection<T>[src]

impl<T: PartialEq + CoordinateType> PartialEq<RLineIntersection<T>> for RLineIntersection<T>[src]

impl<T: CoordinateType> StructuralPartialEq for RLineIntersection<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for RLineIntersection<T> where
    T: RefUnwindSafe

impl<T> Send for RLineIntersection<T> where
    T: Send

impl<T> Sync for RLineIntersection<T> where
    T: Sync

impl<T> Unpin for RLineIntersection<T> where
    T: Unpin

impl<T> UnwindSafe for RLineIntersection<T> where
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.