nearest_point

Function nearest_point 

Source
pub fn nearest_point(points: &[Point], cursor_position: Point) -> usize
Expand description

ยงPanics

Determines the nearest point with the smallest distance to the cursor position. The index of the point is returned. Will panic if distance vec can not compare a and b