pub trait NearestNeighborIndex: SpatialIndex {
// Required methods
fn nearest_one(&self, x: f32, y: f32, z: f32) -> Option<Neighbor>;
fn nearest_k(&self, x: f32, y: f32, z: f32, k: usize) -> Vec<Neighbor>;
}Expand description
Exact nearest neighbor queries.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".