コード例 #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);
 }