Geometric question

How to determine if a point is inside a polygon (polygon defined by any 4 points, but i think the problem is the same with n points) ?

Good algebric question, and useful for me.

Thx in advance
Sebastien

there’s an ofInsidePoly function in ofMath that you can use.

Also, always that your question includes the word polygon, you will find the answer for sure googling for the question + paul bourke : )

http://www.google.com/search?q=point+in+polygon+paul+bourke