pub struct SimpleKernel;
Expand description
Simple kernel provides the direct implementation of the predicates. These are meant to be used with exact arithmetic signed types (eg. i32, i64).
Trait Implementations§
source§impl Debug for SimpleKernel
impl Debug for SimpleKernel
source§impl Default for SimpleKernel
impl Default for SimpleKernel
source§fn default() -> SimpleKernel
fn default() -> SimpleKernel
Returns the “default value” for a type. Read more
source§impl<T: CoordNum> Kernel<T> for SimpleKernel
impl<T: CoordNum> Kernel<T> for SimpleKernel
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 SimpleKernel
impl Send for SimpleKernel
impl Sync for SimpleKernel
impl Unpin for SimpleKernel
impl UnwindSafe for SimpleKernel
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