.. oe:namespace:: OEShape

.. meta::
   :keywords: OEGetCenterAndExtents

.. oe:function:: OEGetCenterAndExtents

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

      .. oe:api::

         void OEGetCenterAndExtents(const OEShapeQueryPublic& sq, float* ctr,
                                    float* ext)

   .. oe:language:: python

      .. oe:api:: python

         OEGetCenterAndExtents(sq: OEShapeQueryBase, ctr: OEFloatArray,
                               ext: OEFloatArray) -> None
         OEGetCenterAndExtents(sq: OEShapeQueryPublic, ctr: OEFloatArray,
                               ext: OEFloatArray) -> None

   Fills the first three values of `ctr` with the location of the center
   of `sq` and fills the first three values of `ext` with the extents.
