Question: Using the graphics class in java, draw a polygon with these arrays of points: int [] x = {20, 35, 50, 65, 80, 95}; int

Using the graphics class in java, draw a polygon with these arrays of points:

int [] x = {20, 35, 50, 65, 80, 95}; int [] y = {60, 105, 105, 110, 95, 95};

and draw a point in or outside the polygon defined by user input. Then determine whether that point is inside or outside the polygon.

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!