-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Polygon.contains? bug #7
Comments
Thanks for reporting a very interesting bug. I'll investigate what's happening there. |
ruby-geometry is issued uncorrect results with some data. Details on DanielVartanov/ruby-geometry#7 That's why a new implementation has been developed, without using third-party gems.
Yes, it appears that
Running this prints the following output for me:
I suspect this has something to do with the randomness introduced in point_in_polygon.rb line 54. In my application, I've monkey-patched the |
Hey @seangransee, can you please form a PR with your patch? This problem is indeed very serious. |
Sure! I'll try to take care of it sometime this week. |
Thanks in advance! |
PR created in #17. It's not perfect yet, but it's a starting point. |
Result = true. It's ok. But:
result = false
The text was updated successfully, but these errors were encountered: