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§
source§impl Debug for RobustKernel
impl Debug for RobustKernel
source§impl Default for RobustKernel
impl Default for RobustKernel
source§fn default() -> RobustKernel
fn default() -> RobustKernel
Returns the “default value” for a type. Read more
source§impl<T> Kernel<T> for RobustKernel
impl<T> Kernel<T> for RobustKernel
source§fn orient2d(p: Coord<T>, q: Coord<T>, r: Coord<T>) -> Orientation
fn orient2d(p: Coord<T>, q: Coord<T>, r: Coord<T>) -> Orientation
Gives the orientation of 3 2-dimensional points:
ccw, cw or collinear (None)
fn square_euclidean_distance(p: Coord<T>, q: Coord<T>) -> T
source§fn dot_product_sign(u: Coord<T>, v: Coord<T>) -> Orientation
fn dot_product_sign(u: Coord<T>, v: Coord<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.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§
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