Closed VictorXjoeY closed 4 years ago
Useful for making it easier to check if a point is inside the polygon or for calculating the polygon's center of mass, for example.
https://en.wikipedia.org/wiki/Polygon_triangulation#Ear_clipping_method
Implemented Ear Clipping Method in O(N^2)
Useful for making it easier to check if a point is inside the polygon or for calculating the polygon's center of mass, for example.
https://en.wikipedia.org/wiki/Polygon_triangulation#Ear_clipping_method