Skip to content
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

Segment.intersection() needs updating #395

Open
Bentleysb opened this issue Mar 27, 2019 · 0 comments
Open

Segment.intersection() needs updating #395

Bentleysb opened this issue Mar 27, 2019 · 0 comments

Comments

@Bentleysb
Copy link
Contributor

#373 updated Segment.intersects() to fix a bug where single point intersections would sometimes be mis-computed, due to a precision error. However, it did not update the companion method, Segment.intersection(), that returns the actual intersections. So Segment.intersects() can now return true but Segment.intersection() will return null for the same segments. This can create NullPointerErrors when the methods are used in conjunction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant