How to determine if a point is inside a 2D convex polygon?
This page: http://www.ecse.rpi.edu/Homepages/wrf/Research/Short_Notes/pnpoly.html shows how to do this for any polygon. I have a Java implementation of this, but it is too big to post here in its entirety. However, you should be able to work it out: class Boundary { private final Point[] points; // Points making up the boundary … /** * Return …