I'm currently to come up with a solution towards finding the distance the point and center of the a circle.
I have to add the following method to my Circle class, which given another point's x and y coordinates, in which the method returns whether or not that point is within the bounds of the Circle or not.
I think to accomplish the draw of the circle with a center point and radius, i will have to draw two others points, one inside the circle and one outside. How could I determine which point is inside the circle and which point is outside of the circle?
I'm asking for the distance between two points and center of a circle.
Here's the code I've written so far.
public bool Contains(float px, float py)
{
(Math.Pow(x2 - x1, 2) + Math.Pow(y2 - y1, 2)) < (d * d);
return mContains;
}