polygon2.points
The polygon’s corners in ring order.
Usage
polygon.points(): Point2[]Returns
A new array of cornerCount points, without a closing repeat.
Example
Polygon2.rectangle(2, 2).value.points()[0] // → { x: -1, y: -1 }The polygon’s corners in ring order.
polygon.points(): Point2[]A new array of cornerCount points, without a closing repeat.
Polygon2.rectangle(2, 2).value.points()[0] // → { x: -1, y: -1 }