.. # split from OEMathFunctions.rst:461

.. include:: ../substitutions

.. oe:namespace:: OEMath

.. meta::
   :keywords: OEGeom3DQuaternionToRotMatrix

.. oe:function:: OEGeom3DQuaternionToRotMatrix

   .. oe:language:: c++ java csharp

      .. oe:api::

         template<class T, class U>
         void OEGeom3DQuaternionToRotMatrix(T* RMat, const U* quat)

   .. oe:language:: python

      .. oe:api:: python

         OEGeom3DQuaternionToRotMatrix(RMat: OEDoubleArray, quat: OEDoubleArray) -> None

   Constructs a :math:`3x3` rotation matrix ``RMat`` from the given four element quaternion ``quat``.

