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
Get step-by-step solutions from verified subject matter experts
