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

Use approximate equality checks for 3D point tests #906

Merged
merged 1 commit into from
Dec 13, 2024

Conversation

stephenswat
Copy link
Member

Currently, we require exact equality on floating point 3D vectors, which is unreasonable. This commit changes the code such that the equality is instead defined with an epsilon value of 1E-6.

@stephenswat stephenswat added bug Something isn't working priority: medium medium priority labels Dec 13, 2024
Copy link
Contributor

@niermann999 niermann999 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good so far, but I think you forgot to commit the assert header?

@stephenswat stephenswat force-pushed the fix/near_point3_comparison branch from 17233ab to b69bac7 Compare December 13, 2024 13:15
@stephenswat
Copy link
Member Author

Hah well spotted, thanks.

Currently, we require exact equality on floating point 3D vectors, which
is unreasonable. This commit changes the code such that the equality is
instead defined with an epsilon value of 1E-6.
@stephenswat stephenswat merged commit e670f2a into main Dec 13, 2024
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working priority: medium medium priority
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants