PolygonCoordinates¶
Returns the vertices of a 2-D polygon in canonical (sorted) order.
$ wo 'PolygonCoordinates[Polygon[{{2, 2}, {0, 0}, {1, 1}, {3, 0}}]]'
{{0, 0}, {1, 1}, {2, 2}, {3, 0}}
It also accepts the Triangle head.
Degenerate (zero-area) polygons stay unevaluated.