Trait rust_3d::traits::IsKNearestSearchable [] [src]

pub trait IsKNearestSearchable<Search, Find> {
    fn nearest(&self, search: &Search) -> Result<Find>;
fn knearest(&self, search: &Search, n: usize) -> Vec<Find>; }

IsKNearestSearchable trait used for search structures which can be queried for nearest neighbours. You should only implement this, if your solution is rather efficient

Required Methods

Should return the nearest neighbour to search, if there is any

Should return the k nearest neighbours to search

Implementors