Trait voronator::delaunator::Vector
source · pub trait Vector<C: Coord> {
// Provided methods
fn vector(p: &C, q: &C) -> C { ... }
fn determinant(p: &C, q: &C) -> f64 { ... }
fn dist2(p: &C, q: &C) -> f64 { ... }
fn equals(p: &C, q: &C) -> bool { ... }
fn equals_with_span(p: &C, q: &C, span: f64) -> bool { ... }
}
Expand description
Trait implementing basic vector functions for a Coord
.
To implement this trait, it is possible to simply:
impl Vector<Point> for Point {}