Ejemplo n.º 1
0
        public static bool testCircleVsCirlceOverlap(Vector2f centreA, float radiusA, Vector2f centreB, float radiusB)
        {
            float R = radiusA + radiusB;

            return(AppMath.Vec2DistanceSqrt(centreA, centreB) <= R * R);
        }
Ejemplo n.º 2
0
 public static bool isPointInsideCircle(Vector2f centre, float radius, Vector2f point)
 {
     return(AppMath.Vec2DistanceSqrt(point, centre) <= (radius * radius));
 }