Esempio n. 1
0
 public static bool Contains(Polygon containingPolygon, Circle containedCircle)
 {
     // Pour contenir un cercle, un polygone ne doit pas être contenu par le cercle, ne pas le croiser et contenir son centre
     return(!CircleWithPolygon.Contains(containedCircle, containingPolygon) && !PolygonWithCircle.Cross(containingPolygon, containedCircle) && PolygonWithRealPoint.Contains(containingPolygon, containedCircle.Center));
 }
Esempio n. 2
0
 public static double Distance(Polygon polygon, Circle circle)
 {
     return(CircleWithPolygon.Distance(circle, polygon));
 }
Esempio n. 3
0
 public static List <RealPoint> GetCrossingPoints(Polygon polygon, Circle circle)
 {
     return(CircleWithPolygon.GetCrossingPoints(circle, polygon));
 }
Esempio n. 4
0
 public static bool Cross(Polygon polygon, Circle circle)
 {
     return(CircleWithPolygon.Cross(circle, polygon));
 }