Java:
public boolean contains(float x, float y, float cX, float cY)
{
double distance = Math.sqrt(Math.pow(x - cX, 2) + Math.pow(y- cY, 2));
return distance <= radius;
}
public boolean contains(float x, float y, float cX, float cY)
{
double distance = Math.sqrt(Math.pow(x - cX, 2) + Math.pow(y- cY, 2));
return distance <= radius;
}