-
Notifications
You must be signed in to change notification settings - Fork 160
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
to euler angles #68
Comments
Yes. There's |
See also #79; ypr functionality isn't coordinate agnostic. It is a good idea for however this ends up being handled eventually to be symmetric, though. |
Hey, I made a pull-request #163 to add conversion between intrinsic Euler rotation sequences and Quaternions. In the PR, only the three-axis sequences (e.g. YXZ - yaw pitch roll) are tested fully. Usagelet q = Quat::from_euler(EulerRot::YXZi, 0.3, 0.1, 0.0);
let (y, x, z) = q.to_euler(EulerRot::YXZi); // the "i" indicates intrinsic |
* add euler rotation sequence conversion #68
Thanks @mickare ! |
I have seen some people wanting to extract euler angles from Quaternion and Matrix rotations. Then I've seen others disparaging them for using euler angles. Euler angles are commonly used in editors and while we can create glam rotations from euler angles there's currently no support for going the other way. I don't want to encourage using euler angles where they aren't appropriate but there might be legitimate use cases where providing this functionality would be appropriate.
The text was updated successfully, but these errors were encountered: