Function lex_sort_ref
Source pub fn lex_sort_ref<T: Scalar + PartialOrd + IsNan, const N: usize>(
input: &[Point<T, N>],
) -> Option<Vec<&Point<T, N>>>
Expand description
Sorts the point cloud in lexicographical order, returning a Vec
of references to the original points, in order..
§Arguments
input
: a slice of Point
, representing the point cloud.
§Returns
Some
containing a vector of &Point
s, if the operation was successful.
Otherwise, returns None
.