isClockwise static method
Checks if the Polygon points are ordered clockwise in the list.
Implementation
static bool isClockwise(List<LatLng> points) {
double sum = 0;
for (int i = 0; i < points.length; ++i) {
final a = points[i];
final b = points[(i + 1) % points.length];
sum += (b.longitude - a.longitude) * (b.latitude + a.latitude);
}
return sum >= 0;
}