.. # split from OEMathFunctions.rst:469

.. include:: ../substitutions

.. oe:namespace:: OEMath

.. meta::
   :keywords: OEGeom3DRotVectorToTransform

.. oe:function:: OEGeom3DRotVectorToTransform

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

      .. oe:api::

         template<class T, class U, class V>
         bool OEGeom3DRotVectorToTransform(T* m, T* tran, const U* p1,
                                           const U* p2, const V theta)

   .. oe:language:: python

      .. oe:api:: python

         OEGeom3DRotVectorToTransform(m: OEDoubleArray, tran: OEDoubleArray,
                                      p1: OEFloatArray, p2: OEFloatArray,
                                      theta: float) -> bool
         OEGeom3DRotVectorToTransform(m: OEDoubleArray, tran: OEDoubleArray,
                                      p1: OEDoubleArray, p2: OEDoubleArray,
                                      theta: float) -> bool

   Return the 3x3 rotation matrix ``m`` and 3 element translation
   ``tran`` for the transformation needed to rotate cartesian
   coordinates by ``theta`` around the vector formed by the points
   ``p1`` and ``p2``.

