[][src]Trait rust_3d::IsSortableND

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

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

Required methods

fn n_dimensions() -> usize where
    Self: Sized

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

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

Should sort all elements by the given dimension

Loading content...

Implementors

impl<P> IsSortableND for PointCloud2D<P> where
    P: Is2D
[src]

impl<P> IsSortableND for PointCloud3D<P> where
    P: Is3D
[src]

Loading content...