示例#1
0
 /// <summary>
 /// Returns true if polygon points are oriented in counter-clockwise order.
 /// </summary>
 public static bool IsCcw(this Polygon2d polygon) => polygon.ComputeWindingNumber() >= 0;
示例#2
0
 /// <summary>
 /// Returns true if polygon points are oriented in counter-clockwise order.
 /// </summary>
 public static bool IsCcw(this Polygon2d polygon)
 {
     return(polygon.ComputeWindingNumber() >= 0);
 }