Trait IsSortableND

Source
pub trait IsSortableND {
    // Required methods
    fn n_dimensions() -> usize
       where Self: Sized;
    fn sort_dim(&mut self, dimension: usize) -> Result<()>;
}
Expand description

IsSortableND trait used for collections which can be sorted by certain dimensions. E.g. x,y,z

Required Methods§

Source

fn n_dimensions() -> usize
where Self: Sized,

Should return the number of dimensions. E.g. 2 for 2D space, 3 for 3D space etc.

Source

fn sort_dim(&mut self, dimension: usize) -> Result<()>

Should sort all elements by the given dimension

Implementors§

Source§

impl<P> IsSortableND for PointCloud2D<P>
where P: Is2D,

Source§

impl<P> IsSortableND for PointCloud3D<P>
where P: Is3D,