Trait sif_kdtree::Point
source · pub trait Point {
type Coord: Num + Copy + PartialOrd;
const DIM: usize;
// Required method
fn coord(&self, axis: usize) -> Self::Coord;
}Expand description
Defines a finite-dimensional space in terms of coordinate values along a chosen set of axes
Required Associated Types§
sourcetype Coord: Num + Copy + PartialOrd
type Coord: Num + Copy + PartialOrd
The type of the coordinate values
Required Associated Constants§
Required Methods§
Implementations on Foreign Types§
source§impl<T, const N: usize> Point for [T; N]where
T: Num + Copy + PartialOrd,
impl<T, const N: usize> Point for [T; N]where T: Num + Copy + PartialOrd,
N-dimensional space using Euclidean distance