threecrate_algorithms/
nearest_neighbor.rs1use threecrate_core::{Point3f, Result, NearestNeighborSearch};
4
5pub struct KdTree {
7 }
9
10impl KdTree {
11 pub fn new(_points: &[Point3f]) -> Result<Self> {
12 todo!("KD-tree construction not yet implemented")
14 }
15}
16
17impl NearestNeighborSearch for KdTree {
18 fn find_k_nearest(&self, _query: &Point3f, _k: usize) -> Vec<(usize, f32)> {
19 todo!("K-nearest neighbor search not yet implemented")
21 }
22
23 fn find_radius_neighbors(&self, _query: &Point3f, _radius: f32) -> Vec<(usize, f32)> {
24 todo!("Radius neighbor search not yet implemented")
26 }
27}