pub fn nearest_point(points: &[Point], cursor_position: Point) -> usizeExpand 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