Example #1
0
 public bool isOverlap(Polygon poly)
 {
     for (int i = 0; i < points.Length; i++) {
         if (poly.isOverlap(points[i])) {
             return true;
         }
     }
     for (int i = 0; i < poly.points.Length; i++) {
         if (isOverlap(poly.points[i])) {
             return true;
         }
     }
     return false;
 }