I have a set of points, and I need to convert the set to (non-overlapping) triangles (or a large polygon, if equivalent) ...
Application: I have a list of locations (latitude, longitude) from the country, and I need to find whether this point is inside the country or not ...
X X *---------* *---------*
| \ / | \ | \
| \ / | \ | \
X x => | * | * = or => | *
| / \ | / | /
| / \ | / | /
X X *---------* *---------*
Is there an easy way or do I need PhD to encode it?
Or with a huge training ground? I found http://en.wikipedia.org/wiki/Point_in_polygon
thanks JD
source
share