Geri-Borbas / Unity.Library.eppz.Geometry

2D Geometry for Unity. Suited for everyday polygon hassle. Polygon clipping, polygon winding direction, polygon area, polygon centroid, centroid of multiple polygons, line intersection, point-line distance, segment intersection, polygon-point containment, polygon triangulation, polygon Voronoi diagram, polygon offset, polygon outline, polygon buffer, polygon union, polygon substraction, polygon boolean operations, and more. It is a polygon fest.
Other
321 stars 58 forks source link

Sort vertices clockwise #3

Open saravanan2020 opened 4 years ago

saravanan2020 commented 4 years ago

I have irregular vertices and i want to sort them CW or CCW. What is the generalized method to do it. Any suggestions please?