示例#1
0
 public static bool Cross(Polygon polygon, Segment segment)
 {
     return(SegmentWithPolygon.Cross(segment, polygon));
 }
示例#2
0
        public static bool Cross(Polygon polygon1, Polygon polygon2)
        {
            // Si un des segments du premier polygone croise le second

            return(polygon1.Sides.Exists(s => SegmentWithPolygon.Cross(s, polygon2)));
        }