|
| AABB1D () |
| Create a 1D axis-aligned bounding box with no extent centered about the origin. More...
|
|
| AABB1D (T center) |
| Create a 1D axis-aligned bounding box with the minimum and maximum coordinates equal to the specified value. More...
|
|
| AABB1D (T newMin, T newMax) |
| Create a 1D axis-aligned bounding box with the specified minimum and maximum coodinates. More...
|
|
| AABB1D (const T *points, Size numPoints) |
| Create a 1D axis-aligned bounding box for the specified array of values. More...
|
|
template<typename U > |
| operator AABB1D< U > () const |
| Cast this bounding box to a bounding box with a different underlying primitive type. More...
|
|
Bool | contains (const AABB1D &bounds) const |
| Return whether or not this bounding box completely contains another. More...
|
|
Bool | contains (T value) const |
| Return whether or not this bounding box contains the specified value. More...
|
|
Bool | intersects (const AABB1D &bounds) const |
| Return whether or not this bounding box intersects another. More...
|
|
void | set (T newMin, T newMax) |
| Set the minimum and maximum values of the axis-aligned bounding box. More...
|
|
T | getWidth () const |
| Get the difference between the maximum and minimum coordinates. More...
|
|
T | getSize () const |
| Get the difference between the maximum and minimum coordinates. More...
|
|
T | getRadius () const |
| Return the distance from the center to the farthest corner of the box. More...
|
|
T | getCenter () const |
| Get the center of the bounding box. More...
|
|
T | getMinMax (Index i) const |
| Return either the minimal or maximal vertex of this AABB. More...
|
|
void | enlargeFor (T value) |
| Modify the current bounding box such that it encloses the specified value. More...
|
|
void | enlargeFor (const AABB1D &box) |
| Modify the current bounding box such that it encloses the specified box. More...
|
|
AABB1D< T > & | operator|= (T value) |
| Modify the current bounding box such that it encloses the specified value. More...
|
|
AABB1D< T > | operator| (T value) const |
| Return the bounding box necessary to enclose a value and the current bounding box. More...
|
|
AABB1D< T > | getUnion (const AABB1D< T > &bounds) const |
| Return the union of this bounding box and another. More...
|
|
AABB1D< T > & | operator|= (const AABB1D< T > &bounds) |
| Modify this bounding box such that it contains the specified bounding box. More...
|
|
AABB1D< T > | operator| (const AABB1D< T > &bounds) const |
| Return the union of this bounding box and another. More...
|
|
AABB1D< T > | getIntersection (const AABB1D< T > &bounds) const |
| Return the intersection of this bounding box and another. More...
|
|
AABB1D< T > & | operator&= (const AABB1D< T > &bounds) |
| Return the intersection of this bounding box and another. More...
|
|
AABB1D< T > | operator& (const AABB1D< T > &bounds) const |
| Return the intersection of this bounding box and another. More...
|
|
Bool | operator== (const AABB1D< T > &other) const |
| Return whether or not this bounding box is exactly the same as another. More...
|
|
Bool | operator!= (const AABB1D< T > &other) const |
| Return whether or not this bounding box is different than another. More...
|
|
AABB1D< T > | operator* (T scale) const |
| Multiply the minimum and maximum coordinates of this bounding box by the specified scale factor. More...
|
|
AABB1D< T > | operator/ (T scale) const |
| Divide the minimum and maximum coordinates of this bounding box by the specified scale factor. More...
|
|
data::String | toString () const |
| Convert this 1D range into a human-readable string representation. More...
|
|
| operator data::String () const |
| Convert this 1D range into a human-readable string representation. More...
|
|
template<typename T>
class om::math::AABB1D< T >
A class that represents a range of values in 1D space.
This class contains two data members: min and max. These indicate the minimum and maximum values that this axis-aligned bounding box represents. The class invariant is that min is less than max, though this is not enforced. The class supports union, containment, and intersection operations.