.. oe:namespace:: OEChem



.. meta::
   :keywords: OETorsion, Torsion


.. _OEChem_OETorsion:

.. oe:class:: OETorsion

   .. oe:api::


      struct OETorsion

   An object to contain the information necessary to represent a
   torsion: a 3D rotation around the vector defined by the
   coordinates of ``a2`` and ``a3`` and an angle defined by ``a1`` and
   ``a4``. The angle is stored in radians instead of degrees

   .. seealso::

      * :oe:func:`OEChem::OEGetTorsions`
      * :oe:meth:`OEChem::OEConfBase::SetTorsion`
      * :oe:meth:`OEChem::OEMCMolBase::NewConf`
      * :oe:meth:`OESz::OESzybki::SetTorsionConstraint`
   
   .. oe:method:: Constructors

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

         .. oe:api::

            OETorsion()
            OETorsion(OEAtomBase* a1, OEAtomBase* a2, OEAtomBase* a3,
                      OEAtomBase* a4, double rads)

      .. oe:language:: python

         .. oe:api:: python

            OETorsion() -> OETorsion
            OETorsion(a1: OEAtomBase, a2: OEAtomBase, a3: OEAtomBase,
                      a4: OEAtomBase, rads: float) -> OETorsion

      Construct a torsion object containing 4 atoms and an angle in radians. 

