(Geometry: strategic point of a polygon) The strategic point of a polygon is a point inside the polygon that has the shortest total distance to all vertices. Write a program that finds and displays the strategic point, as shown in Figure 13.33c. Your program should pass the coordinates of the polygon’s vertices clockwise from the command line as follows:
The program displays the polygon and its strategic point in the frame. (Hint: To find the strategic point, consider every pixel point inside the polygon to see if it is a strategic point. Use the contains method to check whether a point is inside the polygon.)
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.