2

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

jrhicks
  • 14,261
  • 8
  • 39
  • 55

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
  • 63,578
  • 13
  • 136
  • 167
  • 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