A Good Class: java.awt.polygon

http://java.sun.com/j2se/1.4.2/docs/api/java/awt/Polygon.html – ~This class's hit-testing methods, which include the contains, intersects and inside  methods, use the insideness definition described in the Shape class comments.~

?  do you mean for 2d testing?

My vote for word of the day goes to: insideness.

To be able to know your insideness sound like a great thing.

renanse said:

?  do you mean for 2d testing?


I have found many instances where only the x,z position matters in relation to a polygonal shape on the x,z in the 3D space -- mostly in regard of walkspace mapping and certain combat mode presentations I'm working on.  I originally threw together some code, based on a test for a point inside/outside a polygon I found by internet research (http://www.ecse.rpi.edu/Homepages/wrf/Research/Short_Notes/pnpoly.html) , but then discovered this class and thought I would share ; - )