public static boolean testPointCircle(double pX, double pY, double centerX, double centerY, double radiusSquared) {
        double dx = pX - centerX;
        double dy = pY - centerY;
        double dx2 = dx * dx;
        double dy2 = dy * dy;
        return dx2 + dy2 <= radiusSquared;
    }
public static boolean testPointCircle ( double pX , double pY , double centerX , double centerY , double radiusSquared ) { double dx = pX - centerX ; double dy = pY - centerY ; double dx2 = dx * dx ; double dy2 = dy * dy ; return dx2 + dy2 <= radiusSquared ; }
Test whether the point <code>(pX, pY)</code> lies inside the circle with center <code>(centerX, centerY)</code> and square radius <code>radiusSquared</code>.

@param pX
the x coordinate of the point
@param pY
the y coordinate of the point
@param centerX
the x coordinate of the circle's center
@param centerY
the y coordinate of the circle's center
@param radiusSquared
the square radius of the circle
@return <code>true</code> iff the point lies inside the circle; <code>false</code> otherwise