Simsilica / SimMath

A double-based math package similar to JME's float-based math classes.
BSD 3-Clause "New" or "Revised" License
7 stars 4 forks source link

feature request: Quatd.fromRotationMatrix(Matrix3d) #21

Open stephengold opened 2 weeks ago

stephengold commented 2 weeks ago

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) .

pspeed42 commented 2 weeks ago

You are probably right.