Skip to content

Fix to divide-by-zero blowup when normal vector is close to (1.0, 0.0… #247

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

Merged
merged 1 commit into from
May 30, 2024

Conversation

drobnyjt
Copy link
Collaborator

@drobnyjt drobnyjt commented May 30, 2024

Thank you for your contribution to RustBCA!

Before submitting this PR, please make sure you have:

  • Opened an issue
  • Referenced the relevant issue number(s) below
  • Provided a description of the changes below
  • Ensured all tests pass and added any necessary tests for new code

Fixes #246

Description

Added threshold for gimbal lock; currently using a delta of 1e-6.

Tests

Ran code-coupling in a realistic scenario with normal vectors extremely close to zero with many particles and did not see any issues.

@drobnyjt drobnyjt merged commit 4501b08 into dev May 30, 2024
1 check passed
@drobnyjt drobnyjt deleted the fix_rotation branch February 7, 2025 22:59
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

Successfully merging this pull request may close these issues.

1 participant