Trait tpntree::Coordinates

source ·
pub trait Coordinates<const N: usize> {
    fn coordinates(&self) -> &[f64];
}
Expand description

Coordinates is required for a type to be used inside a tpntree::SpatialTree.

Be sure to return a slice of a length equal to const generic type parameter N.

Required Methods§

Implementations on Foreign Types§

Blanket implementation for arrays of length N.

Blanket implementation for vectors.

Panics if the length of the vec is different from N.

Implementors§