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

Reimplement based on Ken Shoemake's Euler angle conversion from Graphics Gems IV #537

Merged
merged 21 commits into from
Jul 14, 2024

Conversation

bitshifter
Copy link
Owner

  • Adds all 24 possible Euler angle combinations including intrinsic and extrinsic rotations.
  • Improves numeric accuracy
  • Fixes problem with resulting angles being outside of the expected range

Most tests pass except for some quat::rotate_towards fails.

Also using matrix methods for quats.
Still need to decide what to do with matrix scale and try add jiggle to
tests.
When creating a quaternion from a matrix or extracting Euler angles from
a matrix we do not support handling matrices that contain non-rotation
transformations. Make that clear in the doc comments and add glam
asserts that check inputs in these cases.
It resulted in a large loss of precision in some cases.

Should have another look at what Imath is doing instead.
@bitshifter bitshifter merged commit bb2ab05 into main Jul 14, 2024
37 checks passed
@bitshifter bitshifter deleted the issue-500 branch July 14, 2024 10:54
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