#include <aabb2.h>
Public Member Functions | |
| AABB2 () | |
| Invalidate the AABB. | |
| AABB2 (const AABB2 &aabb) | |
| AABB2 (const Point2 &min, const Point2 &max) | |
| void | Invalidate () |
| bool | IsValid () const |
| void | Include (const Point2 &point) |
| void | Include (const AABB2 &aabb) |
| void | Intersect (const AABB2 &aabb) |
| bool | Overlaps (const AABB2 &aabb) const |
| bool | Contains (const Point2 &point) const |
| Point2 | GetCenter () const |
| Vector2 | GetSize () const |
| void | Scale (const Vector2 &scale) |
| void | Extend (const Vector2 &ext) |
Static Public Member Functions | |
| AABB2 | Biggest () |
| Returns the largest possible bounding box. | |
Public Attributes | |
| Point2 | m_min |
| Point2 | m_max |
|
|
Invalidate the AABB.
|
|
|
|
|
||||||||||||
|
|
|
|
Returns the largest possible bounding box.
|
|
|
|
|
|
Offsets the box corners outward by a given amount on each axis, without affecting the box center. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Warning, calling the Intersect() method may result in an invalid bounding box. |
|
|
|
|
|
|
|
|
|
|
|
Scales the box extent by a given factor on each axis without affecting the box center. |
|
|
|
|
|
|
1.3.6