.. oe:namespace:: OEShape

.. meta::
   :keywords: OEGetMomentsOfInertiaTransform

.. oe:function:: OEGetMomentsOfInertiaTransform

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

      .. oe:api::

         unsigned int OEGetMomentsOfInertiaTransform(OEChem::OETrans& argTransform,
                                                     const OEChem::OEMolBase & argMol,
                                                     const double argThreshold = 0.15)
         unsigned int OEGetMomentsOfInertiaTransform(OEChem::OETrans& argTransform,
                                                     const OESystem::OEScalarGrid& argGrid,
                                                     const double argThreshold = 0.15)
         unsigned int OEGetMomentsOfInertiaTransform(OEChem::OETrans& argTransform,
                                                     const OEShapeQuery& argQuery,
                                                     const double argThreshold = 0.15)

   .. oe:language:: python

      .. oe:api:: python

         OEGetMomentsOfInertiaTransform(argTransform: OETrans,
                                        argMol: Union[OEGraphMol,OEMol,OEQMol],
                                        argThreshold: float = 0.15) -> int
         OEGetMomentsOfInertiaTransform(argTransform: OETrans,
                                        argGrid: OEScalarGrid,
                                        argThreshold: float = 0.15) -> int
         OEGetMomentsOfInertiaTransform(argTransform: OETrans,
                                        argQuery: OEShapeQuery,
                                        argThreshold: float = 0.15) -> int

   Calculate the transform required to move the object (the specified
   molecule, grid or the shape query) to the center of its inertial frame.
   Method returns the moments symmetry of the object defined in the
   :oe:constns:`OEShape::OEMomentSymmetry` namespace.  The
   required transform is returned in the first argument.
