isClockWise static method
pts
-- points defining a 2D polygon
Note that this is a linear function so it is necessary to calculate separately for x, y components of a polygon.
Used internally by Path, ExtrudeGeometry
and ShapeGeometry
.
Implementation
static bool isClockWise(List<Vector?> pts) {
return ShapeUtils.area(pts) < 0;
}