pub fn delaunay_triangulation(points: &[[f64; 2]]) -> Option<Triangulation>Expand description
Triangulates points by a sweep with Lawson flips (O(n log n) typical): points are inserted
in lexicographic order, so each lies outside the triangulation so far and is joined to the hull
edges it can see; every new edge is then checked against the empty-circle test and flipped
until the triangulation is Delaunay again.
Duplicate points are ignored (they appear in no triangle). Returns None for fewer than three
distinct finite points or when all points are collinear. Points cocircular to rounding are
triangulated in either valid way.