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

Fix order argument for quat_to_euler, quat_from_euler & mat_from_eulet #94

Merged
merged 6 commits into from
Dec 28, 2024

Conversation

Korijn
Copy link
Contributor

@Korijn Korijn commented Dec 27, 2024

Closes #86

This was way complicated. Thank goodness there was a robust python implementation available.

Changes:

  • Adds order argument to quat_to_euler
  • Correct support for intrinsic and extrinsic rotations
  • ⚠️ breaking change Aligns order argument convention with scipy's: extrinsic is now lowercase, it was uppercase before.
  • Bump version to 0.6.0 because of the breaking changes
  • Improved order argument docstring.
  • Lots of new tests, including the case from the bug report, and comparisons to scipy's implementation

@Korijn Korijn mentioned this pull request Dec 27, 2024
@Korijn Korijn requested a review from almarklein December 27, 2024 11:27
@Korijn Korijn changed the title Fix quat_to_euler and quat_from_euler Fix quat_to_euler, quat_from_euler & mat_from_eulet Dec 28, 2024
@Korijn Korijn changed the title Fix quat_to_euler, quat_from_euler & mat_from_eulet Fix order argument for quat_to_euler, quat_from_euler & mat_from_eulet Dec 28, 2024
@Korijn Korijn merged commit fc49cdb into main Dec 28, 2024
10 checks passed
@Korijn Korijn deleted the fix-quat-to-euler branch December 28, 2024 17:17
elif out is None:
out = affine_matrix
else:
out @= affine_matrix
Copy link
Contributor Author

@Korijn Korijn Dec 29, 2024

Choose a reason for hiding this comment

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

Probably just echoing into the void here but this was the first time in my life I used this operator. For some reason it feels special. :)

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.

Conversion between euler and quats doesn't seem stable
1 participant