public static bool testCircleVsCirlceOverlap(Vector2f centreA, float radiusA, Vector2f centreB, float radiusB) { float R = radiusA + radiusB; return(AppMath.Vec2DistanceSqrt(centreA, centreB) <= R * R); }
public static bool isPointInsideCircle(Vector2f centre, float radius, Vector2f point) { return(AppMath.Vec2DistanceSqrt(point, centre) <= (radius * radius)); }