.. # split from OEMathFunctions.rst:160

.. include:: ../substitutions

.. oe:namespace:: OEMath

.. meta::
   :keywords: OEGeom2DTranslate

.. oe:function:: OEGeom2DTranslate

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

      .. oe:api::

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

   .. oe:language:: python

      .. oe:api:: python

         OEGeom2DTranslate(xyz: OEFloatArray, t: OEFloatArray, ncoord: int) -> None
         OEGeom2DTranslate(xyz: OEDoubleArray, t: OEDoubleArray, ncoord: int) -> None

   Translates the two dimensional coordinates by the vector passed as the 
   argument ``t``.  The vector ``t`` must be of size two and contain the Cartesian
   translation vectors.  For ``ncoord`` sets of coordinates the input array ``xyz``
   is expected to have a length of :math:`2*ncoord`.

   *xyz*
      Array of coordinates to translate

   *t*
      Translation vector array

   *ncoord*
      Number of coordinate sets
