This repository has been archived by the owner on Aug 4, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 102
Wrong results for some points #1
Labels
Comments
I'm having the same issue. Using coordinates is not yielding the best results. |
@mccollumni convert all floats to doubles in these classes. |
That doesn't fix the problem |
Here a simple example of coordinates yielding a bad result:
|
The code is flawed for any point hitting a vertex. If the ray drawn strikes a vertex exactly. Then that point counts as outside the polygon while it's inside the polygon. |
The main issue was with I have tested and added tests for all failing examples in this issue.
You can use latest release 1.0.2 with the fixes - polygon-1.0.2.jar |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The text was updated successfully, but these errors were encountered: