2

How can I determine if coordinate point lies within a polygon using Ruby?

jrhicks
  • 14,759
  • 9
  • 42
  • 57

1 Answers1

6

Jake Scruggs has an entry on the matter here. The theory behind is the classic odd/even ray intersection, and it has been tackled at SO at least here.

Community
  • 1
  • 1
tokland
  • 66,169
  • 13
  • 144
  • 170
  • This answers the question as asked and is a really cool answer. I possibly should have inquired about the best gem/library. – jrhicks Jan 18 '11 at 04:02