Closed agate-pris closed 6 years ago
I've implemented this for matrices, both for Tait–Bryan angles and Euler angles.
Thank you.
Is this method implemented. I would love a euler_angles method or is it named something else?
Thank you for the response, but was hoping to either extract the euler angles from a matrix or a quaternion. These methods seems to only apply euler angles to the matrices.
Right, that's what this issue was about. There is a conversion of matrix to a quaternion, if that helps: https://boostorg.github.io/qvm/#quat_convert_to.
Boost.QVM does not seem to support rotation by Euler angles.
I think that following overload should be added.
rot_mat
by Euler anglesset_rot
for matrix type by Euler anglesrotate
for matrix type by Euler anglesrot_quat
by Euler anglesset_rot
for quaternion type by Euler anglesrotate
for quaternion type by Euler anglesFunction template
euler_angles
should be added that convert quaternion to 3-dimensional vector type. It probably usezero_magnitude_error
.If you like, I will fork, implement it and send a pull request.