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 aQuatdto an equivalent rotation matrix.It would be useful to provide the inverse as well: a method that converts a
Matrix3dto a quaternion, assuming a valid rotation matrix.This method could be analogous with JME's
Quaternion.fromRotationMatrix(Matrix3f).