.. oe:namespace:: OEFastROCS

.. meta::
   :keywords: OESetCoordsToInertialFrame

.. oe:function:: OESetCoordsToInertialFrame

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

      .. oe:api::

         bool OESetCoordsToInertialFrame(OEChem::OEMolBase& mol)

   .. oe:language:: python

      .. oe:api:: python

         OESetCoordsToInertialFrame(mol: Union[OEGraphMol,OEMol,OEQMol]) -> bool

   Set the coordinates of ``mol`` to be aligned by its principle
   moments of inertia. The transformations returned by
   :oe:meth:`OEFastROCS::OEShapeDatabaseScore::GetQuat`,
   :oe:meth:`OEFastROCS::OEShapeDatabaseScore::GetRotMatrix`, and
   :oe:meth:`OEFastROCS::OEShapeDatabaseScore::GetTranslation` assume
   the molecule has already been aligned by its principle moment of
   inertia. Users should prefer to use the
   :oe:meth:`OEFastROCS::OEShapeDatabaseScore::Transform` directly to
   avoid having to deal with this subtlety. 

   .. seealso:: 

      :ref:`OEShapeDatabaseScore <OEFastROCS_OEShapeDatabaseScore>`
