|
3es
0.7
|
A simple bounding box structure. More...
#include <3esbounds.h>
Public Member Functions | |
| Bounds () | |
Initialises bounds where max < min at using the limits of the type T. | |
| Bounds (const Bounds< T > &other) | |
| Copy constructor. More... | |
| template<typename Q > | |
| Bounds (const Bounds< Q > &other) | |
| Copy constructor from a different numeric type. More... | |
| Bounds (const Vector3< T > &minExt, const Vector3< T > maxExt) | |
| Initialise a bounding box with the given extents. More... | |
| const Vector3< T > & | minimum () const |
| Access the minimum extents. More... | |
| const Vector3< T > & | maximum () const |
| Access the maximum extents. More... | |
| void | expand (const Vector3< T > &point) |
Expand the bounding box to include point. More... | |
| void | expand (const Bounds< T > &other) |
Expand the bounding box to include other. More... | |
| bool | isValid () const |
| Returns true if the bounds are valid, with minimum extents less than or equal to the maximum. More... | |
| bool | operator== (const Bounds< T > &other) const |
| Precise equality operator. More... | |
| bool | operator!= (const Bounds< T > &other) const |
| Precise inequality operator. More... | |
| Bounds< T > & | operator= (const Bounds< T > &other) |
| Assignment operator. More... | |
A simple bounding box structure.
|
inline |
Copy constructor.
| other | The bounds to copy. |
|
inline |
Copy constructor from a different numeric type.
The type Q must be compatible with T. Generally used to convert between single and double precision.
| other | The bounds to copy. |
|
inline |
Initialise a bounding box with the given extents.
| minExt | The bounding box minimum. All components must be less than or equal to |
| maxExtents. | |
| maxExt | The bounding box maximum. All components must be greater than or equal to |
| minExtents. |
|
inline |
Expand the bounding box to include point.
| point | The point to include. |
References tes::Vector3< T >::x.
Referenced by tes::Bounds< T >::expand().
|
inline |
Expand the bounding box to include other.
| point | The point to include. |
References tes::Bounds< T >::expand(), tes::Bounds< T >::maximum(), and tes::Bounds< T >::minimum().
|
inline |
Returns true if the bounds are valid, with minimum extents less than or equal to the maximum.
|
inline |
Access the maximum extents.
Referenced by tes::Bounds< T >::expand().
|
inline |
Access the minimum extents.
Referenced by tes::Bounds< T >::expand().
|
inline |
Precise inequality operator.
| other | The object to compare to. |
other. References tes::Bounds< T >::operator==().
|
inline |
Assignment operator.
| other | The bounds to copy. |
this.
|
inline |
Precise equality operator.
| other | The object to compare to. |
other. Referenced by tes::Bounds< T >::operator!=().