예제 #1
0
 public static List <RealPoint> GetCrossingPoints(Polygon polygon, Segment segment)
 {
     return(SegmentWithPolygon.GetCrossingPoints(segment, polygon));
 }
예제 #2
0
 public static double Distance(Polygon polygon, Segment segment)
 {
     return(SegmentWithPolygon.Distance(segment, polygon));
 }
예제 #3
0
        public static List <RealPoint> GetCrossingPoints(Polygon polygon1, Polygon polygon2)
        {
            // Croisement des segments du premier polygone avec le second

            return(polygon1.Sides.SelectMany(s => SegmentWithPolygon.GetCrossingPoints(s, polygon2)).ToList());
        }
예제 #4
0
 public static bool Cross(Polygon polygon, Segment segment)
 {
     return(SegmentWithPolygon.Cross(segment, polygon));
 }
예제 #5
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)));
        }