Enum line_intersection::LineRelation [] [src]

pub enum LineRelation<T: Float> {
    DivergentIntersecting(Point<T>),
    DivergentDisjoint,
    Collinear,
    Parallel,
}

The relationship between two line segments.

Variants

The line intervals are not parallel (or anti-parallel), and "meet" each other at exactly one point.

The line intervals are not parallel (or anti-parallel), and do not intersect; they "miss" each other.

The line intervals lie on the same line. They may or may not overlap, and this intersection is possibly infinite.

The line intervals are parallel or anti-parallel.

Methods

impl<T: Float> LineRelation<T>
[src]

Trait Implementations

impl<T: Debug + Float> Debug for LineRelation<T>
[src]

[src]

Formats the value using the given formatter.

impl<T: PartialEq + Float> PartialEq for LineRelation<T>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.