pub fn ear_clip(poly: &[[f64; 2]]) -> Vec<[usize; 3]>Expand description
Ear-clip a (possibly non-convex) simple polygon into triangles, as
index triples into poly: n - 2 of them for n >= 3 corners, none
for fewer. Plain numbers, for rendering: a corner that rounding leaves
no ear at is cut off all the same.