.. include:: ../substitutions

.. oe:namespace:: OEChem

.. meta::
   :keywords: OEEulerRotate

.. oe:function:: OEEulerRotate

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

      .. oe:api::

         void OEEulerRotate(OEMolBase& mol, const double* angles)
         void OEEulerRotate(OEConfBase& conf, const double* angles)
         void OEEulerRotate(OEMCMolBase& mcmol, const double* angles)

   .. oe:language:: python

      .. oe:api:: python

         OEEulerRotate(mol: Union[OEGraphMol,OEQMol], angles: OEDoubleArray) -> None
         OEEulerRotate(conf: OEConfBase, angles: OEDoubleArray) -> None
         OEEulerRotate(mcmol: OEMol, angles: OEDoubleArray) -> None


   Rotates the molecules about the z, x', and z' axes in order.  It
   is assumed that the angles array is at least of length 3.  The angles
   array should contain the z rotation in radians in ``angles[0]``, the
   x' rotation in radians in ``angles[1]``, and the z' rotation in
   radians in ``angles[2]``.  The overloads for
   :ref:`OEConfBase <OEChem_OEConfBase>` and :oe:cls:`OEMCMolBase<OEChem::OEMCMolBase>` are
   for efficiency.

   *mol*
      The molecule to rotate.

   *conf*
      The conformer to rotate.

   *mcmol*
      The multi-conformer molecule to rotate.

   *angle*
      The rotation angle.

