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

Fix rounding issue in intersection calculation #6

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

juhanihaapala
Copy link

This is actually floating point issue rather than rounding issue.

I bumped into this issue with two items which has same size 51.9x51.9x51.9 and then in this intersection calculation returns true for 51.9 < 51.9 which should be false.

@latuconsinafr latuconsinafr added the bug Something isn't working label Nov 20, 2023
@latuconsinafr
Copy link
Owner

latuconsinafr commented Nov 20, 2023

This is actually floating point issue rather than rounding issue.

I bumped into this issue with two items which has same size 51.9x51.9x51.9 and then in this intersection calculation returns true for 51.9 < 51.9 which should be false.

Ah, I see then, it should be solved right now. Thanks.

Btw, would you please provide the test as well?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants