.. # split from OEMathFunctions.rst:232

.. include:: ../substitutions

.. oe:namespace:: OEMath

.. meta::
   :keywords: OEGeom3DCrossProd

.. oe:function:: OEGeom3DCrossProd

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

      .. oe:api::

         template<class T>
         void OEGeom3DCrossProd(T* x, const T* p, const T* q, const T* r)
         template<class T, class U, class V>
         void OEGeom3DCrossProd(T* x, const U* p, const V* q)

   .. oe:language:: python

      .. oe:api:: python

         OEGeom3DCrossProd(x: OEFloatArray, p: OEFloatArray, q: OEFloatArray,
                           r: OEFloatArray) -> None
         OEGeom3DCrossProd(x: OEDoubleArray, p: OEDoubleArray,
                           q: OEDoubleArray, r: OEDoubleArray) -> None
         OEGeom3DCrossProd(x: OEFloatArray, p: OEFloatArray, q: OEFloatArray) -> None
         OEGeom3DCrossProd(x: OEDoubleArray, p: OEDoubleArray, q: OEDoubleArray) -> None

   Calculates the cross product of the two three element vectors ``p`` and
   ``q``. The first form computes :math:`x = (p-q)*(r-q)` and
   the second form computes :math:`x = p * q`.
