.. # split from OEMathFunctions.rst:547

.. include:: ../substitutions

.. oe:namespace:: OEMath

.. meta::
   :keywords: OEGeom3DTorsion

.. oe:function:: OEGeom3DTorsion

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

      .. oe:api::

         template<class T>
         double OEGeom3DTorsion(const T* p, const T* q, const T* r, const T* s)

   .. oe:language:: python

      .. oe:api:: python

         OEGeom3DTorsion(p: OEFloatArray, q: OEFloatArray, r: OEFloatArray,
                         s: OEFloatArray) -> float
         OEGeom3DTorsion(p: OEDoubleArray, q: OEDoubleArray, r: OEDoubleArray,
                         s: OEDoubleArray) -> float

   Determines the torsional angle in three dimensions between 
   cartesian coordinate points ``p``, ``q``, ``r``, and ``s``. 
   The result is in radians.
