polygon2.signedArea
The signed area: positive for a counter-clockwise ring, negative for clockwise (y up).
Usage
polygon.signedArea(): numberReturns
Area in model units squared with the winding’s sign; 0 for a collinear ring; for a self-intersecting ring the lobes’ signed areas add (a bow-tie gives 0).
Example
Polygon2.rectangle(2, 2).value.reversed().signedArea() // → -4