Trait rust_3d::traits::IsSortableND
[−]
[src]
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,
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
Implementors
impl<P> IsSortableND for PointCloud2D<P> where
P: Is2D,impl<P> IsSortableND for PointCloud3D<P> where
P: Is3D,