1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
|
..
SPDX-License-Identifier: BSD-3-Clause
Copyright Contributors to the OpenEXR Project.
Box
###
.. code-block::
#include <Imath/ImathBox.h>
The ``Box`` class template represents 2D and 3D axis-aligned bounding
boxes, with predefined typedefs for boxes of type ``short``, ``int``,
``int64_t``, ``float``, and ``double``.
The box is defined by minimum and maximum values along each axis,
represented by ``Vec2<T>`` for the ``Box2`` types and by ``Vec3<T>``
for ``Box3`` types.
There are also various utility functions that operate on bounding
boxes defined in ``ImathBoxAlgo.h`` and described in :ref:`Box
Functions <box-functions>`.
Example:
.. literalinclude:: ../examples/Box.cpp
:language: c++
.. doxygentypedef:: Box2s
.. doxygentypedef:: Box2i
.. doxygentypedef:: Box2i64
.. doxygentypedef:: Box2f
.. doxygentypedef:: Box2d
.. doxygentypedef:: Box3s
.. doxygentypedef:: Box3i
.. doxygentypedef:: Box3i64
.. doxygentypedef:: Box3f
.. doxygentypedef:: Box3d
.. doxygenclass:: Imath::Box
:undoc-members:
:members:
.. doxygenclass:: Imath::Box< Vec2< T > >
:undoc-members:
:members:
.. doxygenclass:: Imath::Box< Vec3< T > >
:undoc-members:
:members:
|