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.
Parameters
vertices: readonlynumber[]
polygon vertices as a flat array [x0, y0, x1, y1, ...]
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.