pub fn triangulate(vertices: &[Vec2D]) -> Vec<[Vec2D; 3]>
Split a polygon up into triangles using the ear cutting algorithm. Returns a vec of coordinate sets for each triangle