Returns the winding order of the polygon from the sign of its signed area: 1 for counter-clockwise, -1 for clockwise, and 0 for a degenerate (zero-area) polygon.
1
-1
0
polygon vertices as a flat array [x0, y0, x1, y1, ...]
[x0, y0, x1, y1, ...]
number of vertices to read from vertices
vertices
1 (CCW), -1 (CW), or 0 (degenerate)
Returns the winding order of the polygon from the sign of its signed area:
1for counter-clockwise,-1for clockwise, and0for a degenerate (zero-area) polygon.