Skip to main content

nearest

Function nearest 

Source
pub fn nearest(points: &[[f32; 2]], x: f32, tolerance: f32) -> Option<usize>
Expand description

The index of the point whose input is nearest x, within tolerance.