I am trying to build a polygonal shape tool and have it calculate against its area to find if a point exists inside or out side the area.
These examples work well you you want to calculate on every object every time, but I am looking for a way to "HASH" the shape/area of a polygon relative to a spacial location, then The math becomes a simple "HASH" check to find if a value exists inside or outside of the defined "HASH".
I have found some decent basic examples:
http://jsfromhell.com/math/is-point-in-poly ,
http://en.wikipedia.org/wiki/Point_in_polygon (Ray casting algorithm)