pub fn nearest(points: &[[f32; 2]], x: f32, tolerance: f32) -> Option<usize>
The index of the point whose input is nearest x, within tolerance.
x
tolerance