Skip to content

Fix Quaternion::to_euler#2

Open
Ceiphos wants to merge 1 commit into
David-OConnor:mainfrom
Ceiphos:fix-quaternion-to-euler
Open

Fix Quaternion::to_euler#2
Ceiphos wants to merge 1 commit into
David-OConnor:mainfrom
Ceiphos:fix-quaternion-to-euler

Conversation

@Ceiphos

@Ceiphos Ceiphos commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Hi,
I played around with the crate and noticed an issue with Quaternion::to_euler. I had a look at the linked blog post, fixed the implementation and added some more test cases.

Note: The test test_simd_rotate_vec is currently failing. As far as I can tell this is due to a mix up of the components of the expected angled vector in the testcase. If you want I can fix this in this PR as well or do a separate PR.

@David-OConnor

Copy link
Copy Markdown
Owner

TY for the PR! I need to think on the Euler change. I suspect this may have something to do with conflicting conventions.

If you create a PR with the SIMD fix; I will merge that; looks good!

@Ceiphos

Ceiphos commented Jun 26, 2026

Copy link
Copy Markdown
Contributor Author

👍
I cross checked my test cases with this calculator and choosing the ZYX convention (which the blogpost also uses)

@Ceiphos Ceiphos force-pushed the fix-quaternion-to-euler branch from 7b6d515 to 99082d9 Compare June 26, 2026 21:20
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