Function rtriangulate::sort_points
[−]
[src]
pub fn sort_points<T, P1, P2>(a: &P1, b: &P2) -> Ordering where
T: FloatCore,
P1: Point<T>,
P2: Point<T>,
A utility function to sort points.
Use this function by passing it to sort_by
or sort_unstable_by
on your slice of points.
The ordering this function applies is what the triangulate
function expects, which is an
ascending x
order.