3

I have a 2d polygon that consists of a list with points, i want to check wether a given point lies in that polygon, but i cant find a good way to check this.

Can anyone point me in the right direction?

2 Answers2

3

http://en.wikipedia.org/wiki/Point_in_polygon

Paul Croarkin
  • 14,496
  • 14
  • 79
  • 118
2

http://alienryderflex.com/polygon/
this is a very very clear guide how to do that, inclusive a implementation in C

Marnix v. R.
  • 1,638
  • 4
  • 22
  • 33