[][src]Trait instinct::InstinctOrd

pub trait InstinctOrd<Rhs> {
    fn instinct_cmp(&self, other: &Rhs) -> Ordering;
fn instinct_cmp_ext(&self, other: &Rhs) -> Option<Ordering>; }

instinct_cmp only compare points and finite(truncated) lines and polygons Cross and Parallel cases would give a Equal

instinct_cmp_ext compare points and infinite lines and planes represented by polygons returns None when cross happens and Equal in parallel situations with edge cases below will gives Equal not None: two same points two same lines two same planes point in line point in plane line in plane

Required methods

fn instinct_cmp(&self, other: &Rhs) -> Ordering

fn instinct_cmp_ext(&self, other: &Rhs) -> Option<Ordering>

Loading content...

Implementations on Foreign Types

impl<'a, N: RealField> InstinctOrd<Point<N, U3>> for Point3<N>[src]

Compare two Point3

impl<'a, N: RealField> InstinctOrd<(&'a Point<N, U3>, &'a Point<N, U3>)> for Point3<N>[src]

Compare Point3 with a line linked by two points

It's comparing the point and the plane represented by the projection of the line on Z-Y plane

impl<'a, N: RealField> InstinctOrd<(Point<N, U3>, Point<N, U3>)> for Point3<N>[src]

impl<'a, N: RealField> InstinctOrd<(&'a Point<N, U3>, &'a Point<N, U3>, &'a Point<N, U3>)> for Point3<N>[src]

Compare point and a plane linked by three points

impl<N: RealField> InstinctOrd<(Point<N, U3>, Point<N, U3>, Point<N, U3>)> for Point3<N>[src]

Loading content...

Implementors

impl<'a, N: RealField> InstinctOrd<(&'a Point<N, U3>, &'a Point<N, U3>)> for LineRef<'a, N>[src]

Compare two lines linked by two points for each

impl<'a, N: RealField> InstinctOrd<(&'a Point<N, U3>, &'a Point<N, U3>)> for Line<N>[src]

impl<'a, N: RealField> InstinctOrd<(&'a Point<N, U3>, &'a Point<N, U3>)> for PlaneRef<'a, N>[src]

impl<'a, N: RealField> InstinctOrd<(&'a Point<N, U3>, &'a Point<N, U3>)> for Plane<N>[src]

impl<'a, N: RealField> InstinctOrd<(&'a Point<N, U3>, &'a Point<N, U3>, &'a Point<N, U3>)> for LineRef<'a, N>[src]

Compare a line and a plane

impl<'a, N: RealField> InstinctOrd<(&'a Point<N, U3>, &'a Point<N, U3>, &'a Point<N, U3>)> for Line<N>[src]

impl<'a, N: RealField> InstinctOrd<(&'a Point<N, U3>, &'a Point<N, U3>, &'a Point<N, U3>)> for PlaneRef<'a, N>[src]

Compare two planes

impl<'a, N: RealField> InstinctOrd<(&'a Point<N, U3>, &'a Point<N, U3>, &'a Point<N, U3>)> for Plane<N>[src]

impl<'a, N: RealField> InstinctOrd<(Point<N, U3>, Point<N, U3>)> for Line<N>[src]

impl<'a, N: RealField> InstinctOrd<(Point<N, U3>, Point<N, U3>)> for LineRef<'a, N>[src]

impl<'a, N: RealField> InstinctOrd<(Point<N, U3>, Point<N, U3>)> for PlaneRef<'a, N>[src]

impl<'a, N: RealField> InstinctOrd<(Point<N, U3>, Point<N, U3>, Point<N, U3>)> for LineRef<'a, N>[src]

impl<'a, N: RealField> InstinctOrd<(Point<N, U3>, Point<N, U3>, Point<N, U3>)> for PlaneRef<'a, N>[src]

impl<'a, N: RealField> InstinctOrd<Point<N, U3>> for PlaneRef<'a, N>[src]

impl<'a, N: RealField> InstinctOrd<Point<N, U3>> for Line<N>[src]

Compare line linked by two points and a point

impl<'a, N: RealField> InstinctOrd<Point<N, U3>> for LineRef<'a, N>[src]

impl<N: RealField> InstinctOrd<(Point<N, U3>, Point<N, U3>)> for Plane<N>[src]

impl<N: RealField> InstinctOrd<(Point<N, U3>, Point<N, U3>, Point<N, U3>)> for Line<N>[src]

impl<N: RealField> InstinctOrd<(Point<N, U3>, Point<N, U3>, Point<N, U3>)> for Plane<N>[src]

impl<N: RealField> InstinctOrd<Point<N, U3>> for Plane<N>[src]

Loading content...