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
sourceimpl Debug for SimpleKernel
impl Debug for SimpleKernel
sourceimpl Default for SimpleKernel
impl Default for SimpleKernel
sourcefn default() -> SimpleKernel
fn default() -> SimpleKernel
Returns the “default value” for a type. Read more
sourceimpl<T: CoordNum> Kernel<T> for SimpleKernel
impl<T: CoordNum> Kernel<T> for SimpleKernel
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 SimpleKernel
impl Send for SimpleKernel
impl Sync for SimpleKernel
impl Unpin for SimpleKernel
impl UnwindSafe for SimpleKernel
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