.. # split from OEMathFunctions.rst:350

.. include:: ../substitutions

.. oe:namespace:: OEMath

.. meta::
   :keywords: OEGeom3DMakeQuaternion

.. oe:function:: OEGeom3DMakeQuaternion

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

      .. oe:api::

         template<class T, class U, class V>
         void OEGeom3DMakeQuaternion(T* quat, const U* vec, const V angle)

   .. oe:language:: python

      .. oe:api:: python

         OEGeom3DMakeQuaternion(quat: OEDoubleArray, vec: OEDoubleArray,
                                angle: float) -> None

   Construct a 4-element quaternion pointed to by ``quat`` from the
   3-element vector ``vec`` and the angle ``angle``. This quaternion
   represents a 3D rotation around the axis of ``vec`` by the angle
   ``angle``.

   .. warning:: 

      Translation is not taken into account by this function. 


