pub fn find_nearest_neighbour_naive<T, const N: usize>(
point: &Point<T, N>,
all_points: &[Point<T, N>],
) -> Option<Point<T, N>>
Expand description
Finds the closest matching target point to the passed source point.
§Arguments
point
: APoint
, for which to find the closest point.all_points
: A slice ofPoint
, representing the target point cloud.
§Generics
§Returns
An Option
of Point
, representing said closest point, empty if no points were provided.