.. # split from OEMathFunctions.rst:120

.. include:: ../substitutions

.. oe:namespace:: OEMath

.. meta::
   :keywords: OEGeom2DRotate

.. oe:function:: OEGeom2DRotate

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

      .. oe:api::

         template<class T, class U>
         void OEGeom2DRotate(T* xyz, const U* m, unsigned int ncoord)

   .. oe:language:: python

      .. oe:api:: python

         OEGeom2DRotate(xyz: OEFloatArray, m: OEFloatArray, ncoord: int) -> None
         OEGeom2DRotate(xyz: OEDoubleArray, m: OEDoubleArray, ncoord: int) -> None

   Rotates the two dimensional coordinates by the :math:`2 \times 2`
   rotation matrix passed as the argument ``m``.  For ``ncoord`` sets 
   of coordinates the input array ``xyz`` is expected to have a length 
   of :math:`2*ncoord`.

   *xyz*
      Array of coordinates to rotate

   *m*
      Rotation matrix

   *ncoord*
      Number of coordinate sets
