
.. oe:namespace:: OEMath

.. meta::
   :keywords: OESetupBoxCenterAndExtents

.. oe:function:: OESetupBoxCenterAndExtents

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

      .. oe:api::

         bool OESetupBoxCenterAndExtents(OEBox& box, const float* center,
                                         const float* extents)

   .. oe:language:: python

      .. oe:api:: python

         OESetupBoxCenterAndExtents(arg1: OEBox, center: OEFloatArray,
                                    extents: OEFloatArray) -> bool

   Sets up *box* using a center coordinate and the dimension of the box.

      *box*
         Box to setup

      *center*
         A length 3 array holds the coordinate of the box center 

      *extends*
         A length 3 array holding the x, y and z dimensions of the box.

   Returns true if setup was successful.

