Function lex_sort

Source
pub fn lex_sort<T: Scalar + PartialOrd + IsNan, const N: usize>(
    input: &[Point<T, N>],
) -> Option<Vec<Point<T, N>>>
Expand description

Sorts a copy of the point cloud in lexicographical order.

§Arguments

  • input: a slice of Point, representing the point cloud.

§Returns

Some containing a vector of Points, if the operation was successful. Otherwise, returns None.