Currently SimMath provides Quatd.toRotationMatrix() to convert a Quatd to an equivalent rotation matrix.
It would be useful to provide the inverse as well: a method that converts a Matrix3d to a quaternion, assuming a valid rotation matrix.
This method could be analogous with JME's Quaternion.fromRotationMatrix(Matrix3f) .
Currently SimMath provides
Quatd.toRotationMatrix()
to convert aQuatd
to an equivalent rotation matrix. It would be useful to provide the inverse as well: a method that converts aMatrix3d
to a quaternion, assuming a valid rotation matrix. This method could be analogous with JME'sQuaternion.fromRotationMatrix(Matrix3f)
.