Question: Add the following method to your Circle class, which given another point's x and y coordinates, this method returns whether or not that point is

Add the following method to your Circle class, which given another point's x and y coordinates, this method returns whether or not that point is within the bounds of the Circle or not. public bool Contains(float px, float py) To help you accomplish this, on a piece of paper, draw a circle with a center point and radius, then draw two other points, one inside the circle and one outside. How could the computer compute which point is inside the circle and which point is outside the circle? Think about the radius of the circle from its center point compared to the distance between the point and the center of the circle... For this Test, when you have finished adding the above requested information to your Circle class, you will then make an instance object of type Circle, calling its overloaded constructor passing the variables given to you in this test and then you will return your class instance object from this test

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!