19. Point in a polygon

Write a program that lets the user right-click to add points to a polygon. When the user right-clicks, finalize the polygon and determine whether the clicked point lies inside the polygon. If the user right-clicks again, determine whether the new point lies within the existing polygon. If the user left-clicks after the polygon has been finalized, start a new polygon.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.135.188.121