Enum line_intersection::LineRelation
[−]
[src]
pub enum LineRelation<T: Float> { DivergentIntersecting(Point<T>), DivergentDisjoint, Collinear, Parallel, }
The relationship between two line segments.
Variants
DivergentIntersecting(Point<T>)
The line intervals are not parallel (or anti-parallel), and "meet" each other at exactly one point.
DivergentDisjoint
The line intervals are not parallel (or anti-parallel), and do not intersect; they "miss" each other.
Collinear
The line intervals lie on the same line. They may or may not overlap, and this intersection is possibly infinite.
Parallel
The line intervals are parallel or anti-parallel.
Methods
impl<T: Float> LineRelation<T>
[src]
fn unique_intersection(self) -> Option<Point<T>>
[src]
Trait Implementations
impl<T: Debug + Float> Debug for LineRelation<T>
[src]
impl<T: PartialEq + Float> PartialEq for LineRelation<T>
[src]
fn eq(&self, __arg_0: &LineRelation<T>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &LineRelation<T>) -> bool
[src]
This method tests for !=
.