Point-In-Polygon Test

Okay, so you aren't likely to work with triangles all that often. In this lesson we will look at a generic test which will determine if a point lies within a polygon. This test will work for a polygon with any number of sides and so it will be useful for a wide range of shapes. There are three files again, like in the last lesson. One of the files is exactly the same and another has only a single method added to it.
Polygon_click.java
Tools2D.java
Point2D.java

***************************************************************
ASSIGNMENT
Recreate the applet shown here: