.. include:: ../substitutions

.. oe:namespace:: OEChem

.. meta::
   :keywords: OEGetAngle

.. oe:function:: OEGetAngle

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

      .. oe:api::

         double OEGetAngle(const OEMolBase& mol, const OEAtomBase* a,
                           const OEAtomBase* b, const OEAtomBase* c)
         double OEGetAngle(const OEConfBase& conf, const OEAtomBase* a,
                           const OEAtomBase* b, const OEAtomBase* c)
         double OEGetAngle(const OEMolBase& ma, const OEAtomBase* a,
                           const OEMolBase& mb, const OEAtomBase* b,
                           const OEMolBase& mc, const OEAtomBase* c)
         double OEGetAngle(const OEConfBase& ca, const OEAtomBase* a,
                           const OEConfBase& cb, const OEAtomBase* b,
                           const OEConfBase& cc, const OEAtomBase* c)

   .. oe:language:: python

      .. oe:api:: python

         OEGetAngle(arg1: Union[OEGraphMol,OEMol,OEQMol], a: OEAtomBase,
                    b: OEAtomBase, c: OEAtomBase) -> float
         OEGetAngle(conf: OEConfBase, a: OEAtomBase, b: OEAtomBase,
                    c: OEAtomBase) -> float
         OEGetAngle(ma: Union[OEGraphMol,OEMol,OEQMol], a: OEAtomBase,
                    mb: Union[OEGraphMol,OEMol,OEQMol], b: OEAtomBase,
                    mc: Union[OEGraphMol,OEMol,OEQMol], c: OEAtomBase) -> float
         OEGetAngle(ca: OEConfBase, a: OEAtomBase, cb: OEConfBase,
                    b: OEAtomBase, cc: OEConfBase, c: OEAtomBase) -> float

   Returns the angle formed by three atoms where the atom passed in as
   the `b` argument is the vertex.  The function which takes a single
   :ref:`OEMolBase <OEChem_OEMolBase>` argument assumes that all three atoms are
   contained in the single molecule.  The :ref:`OEConfBase <OEChem_OEConfBase>`
   overload functions are not strictly necessary, but are useful for
   efficiency.

   *mol*
      The molecule that the atoms belong to (when all atoms belong to the same molecule).

   *conf*
      The conformer that the atoms belong to (when all atoms belong to the same conformer).

   *a*
      One of the end atoms.

   *b*
      The vertex atom.

   *c*
      One of the end atoms.

   *ma*
      The molecule that atom `a` belongs to (when the atoms are in three different molecule).

   *mb*
      The molecule that atom `b` belongs to (when the atoms are in three different molecule).

   *mc*
      The molecule that atom `c` belongs to (when the atoms are in three different molecule).

   *ca*
      The conformer that atom `a` belongs to (when the atoms are in three different conformer).

   *cb*
      The conformer that atom `b` belongs to (when the atoms are in three different conformer).

   *cc*
      The conformer that atom `c` belongs to (when the atoms are in three different conformer).


