isClockWise static method

bool isClockWise(
  1. List<Vector?> pts
)

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;
}