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

Update quat.h #1209

Merged
merged 1 commit into from
Jun 11, 2024
Merged

Update quat.h #1209

merged 1 commit into from
Jun 11, 2024

Conversation

hearga
Copy link
Contributor

@hearga hearga commented Jun 4, 2024

If from and to vectors are close to being opposite, it is not handled properly. For example, if from is (0,0,1) and to is (0,0,-1) the dot product is -1 this will imply that the axis will be (0,0,0), the length = 0 and the inversenorm will be infinite.

For the proposed solution, note that div is always greater or equal than dot_pd

If from and to vectors are close to being opposite, it is not handled properly.  For example, if from is (0,0,1) and to is (0,0,-1) the dot product is -1 this will imply that the axis will be (0,0,0), the length = 0 and the inversenorm will be infinite.
For the solution, note that div is always greater than dot_pd
@robertosfield robertosfield merged commit 9521dce into vsg-dev:master Jun 11, 2024
4 checks passed
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.

2 participants