pub struct RobustKernel;
Expand description
Robust kernel that uses fast robust
predicates to
provide robust floating point predicates. Should only be
used with types that can always be casted to f64
without loss in precision.
Trait Implementations
sourceimpl Debug for RobustKernel
impl Debug for RobustKernel
sourceimpl Default for RobustKernel
impl Default for RobustKernel
sourcefn default() -> RobustKernel
fn default() -> RobustKernel
Returns the “default value” for a type. Read more
sourceimpl<T> Kernel<T> for RobustKernel where
T: CoordNum + Float,
impl<T> Kernel<T> for RobustKernel where
T: CoordNum + Float,
sourcefn orient2d(p: Coordinate<T>, q: Coordinate<T>, r: Coordinate<T>) -> Orientation
fn orient2d(p: Coordinate<T>, q: Coordinate<T>, r: Coordinate<T>) -> Orientation
Gives the orientation of 3 2-dimensional points: ccw, cw or collinear (None) Read more
fn square_euclidean_distance(p: Coordinate<T>, q: Coordinate<T>) -> T
sourcefn dot_product_sign(u: Coordinate<T>, v: Coordinate<T>) -> Orientation
fn dot_product_sign(u: Coordinate<T>, v: Coordinate<T>) -> Orientation
Compute the sign of the dot product of u
and v
using
robust predicates. The output is CounterClockwise
if
the sign is positive, Clockwise
if negative, and
Collinear
if zero. Read more
Auto Trait Implementations
impl RefUnwindSafe for RobustKernel
impl Send for RobustKernel
impl Sync for RobustKernel
impl Unpin for RobustKernel
impl UnwindSafe for RobustKernel
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more