예제 #1
0
 public static PolygonIntersectionResult CircleCircleIntersect(Circle c0, Circle c1, bool trueOnEdge = true)
 {
     return(PolygonIntersection.CircleCircleIntersect(c0.Position, c0.Radius, c1.Position, c1.Radius, trueOnEdge));
 }
예제 #2
0
 public static bool PolygonPolygonIntersect(Polygon p0, Polygon p1)
 {
     return(PolygonIntersection.PolygonPolygonIntersect(p0, p1, true).Intersecting);
 }
예제 #3
0
 public static bool IsPointInCircle(Vector2 point, Circle circle, bool trueOnEdge = true)
 {
     return(PolygonIntersection.IsPointInCircle(point, circle.Position, circle.Radius, trueOnEdge));
 }
예제 #4
0
 public static bool CirclePolygonIntersect(Vector2 centre, float radius, Polygon p)
 {
     return(PolygonIntersection.CirclePolygonIntersect(centre, radius, p, true).Intersecting);
 }
예제 #5
0
 public static PolygonIntersectionResult CirclePolygonIntersect(Circle c, Polygon p, bool trueOnEdge = true)
 {
     return(PolygonIntersection.CirclePolygonIntersect(c.Position, c.Radius, p, trueOnEdge));
 }
예제 #6
0
 public static bool CircleCircleIntersect(Vector2 centre0, float radius0, Vector2 centre1, float radius1)
 {
     return(PolygonIntersection.CircleCircleIntersect(centre0, radius0, centre1, radius1, true).Intersecting);
 }