public static List <RealPoint> GetCrossingPoints(Polygon polygon, Segment segment) { return(SegmentWithPolygon.GetCrossingPoints(segment, polygon)); }
public static double Distance(Polygon polygon, Segment segment) { return(SegmentWithPolygon.Distance(segment, polygon)); }
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()); }
public static bool Cross(Polygon polygon, Segment segment) { return(SegmentWithPolygon.Cross(segment, polygon)); }
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))); }