pub enum LineRelation {
DivergentIntersecting(IVec2),
DivergentDisjoint,
Collinear,
Parallel,
}Variants§
DivergentIntersecting(IVec2)
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.
Implementations§
Source§impl LineRelation
impl LineRelation
pub fn unique_intersection(self) -> Option<IVec2>
Trait Implementations§
Source§impl Debug for LineRelation
impl Debug for LineRelation
Source§impl PartialEq for LineRelation
impl PartialEq for LineRelation
impl StructuralPartialEq for LineRelation
Auto Trait Implementations§
impl Freeze for LineRelation
impl RefUnwindSafe for LineRelation
impl Send for LineRelation
impl Sync for LineRelation
impl Unpin for LineRelation
impl UnwindSafe for LineRelation
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more