Coordinates

Trait Coordinates 

Source
pub trait Coordinates<const N: usize> {
    // Required method
    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§

Source

fn coordinates(&self) -> &[f64]

Implementations on Foreign Types§

Source§

impl<const N: usize> Coordinates<N> for Vec<f64>

Source§

fn coordinates(&self) -> &[f64]

Blanket implementation for vectors.

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

Source§

impl<const N: usize> Coordinates<N> for [f64; N]

Source§

fn coordinates(&self) -> &[f64]

Blanket implementation for arrays of length N.

Implementors§