.. include:: ../substitutions

.. oe:namespace:: OEChem

.. meta::
   :keywords: OESetPackedCoords

.. oe:function:: OESetPackedCoords

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

      .. oe:api::

         void OESetPackedCoords(OEMolBase& mol, const float* coords)
         void OESetPackedCoords(OEMolBase& mol, const double* coords)

   .. oe:language:: python

      .. oe:api:: python

         OESetPackedCoords(mol: Union[OEGraphMol,OEMol,OEQMol],
                           coords: OEFloatArray) -> None
         OESetPackedCoords(mol: Union[OEGraphMol,OEMol,OEQMol],
                           coords: OEDoubleArray) -> None

   Sets the coordinates of the molecule to the coordinates passed in the
   coords argument.  The coords array must be at least of size
   :oe:meth:`OEChem::OEMolBase::NumAtoms` ``*3``.  The atom coordinates in the coords array
   should be packed and they should be in the same order as the atoms in
   the iterator returned by :oe:meth:`OEChem::OEMolBase::GetAtoms`.

   *mol*
      The molecule to set coordinates.

   *coords*
      The array with coordinates.
