|
SleakEngine 1.0.0
C++23 multi-backend game engine
|
#include <AABB.hpp>
Public Member Functions | |
| AABB ()=default | |
| AABB (const Vector3D &mn, const Vector3D &mx) | |
| Vector3D | Center () const |
| bool | Contains (const Vector3D &p) const |
| True if p lies within (or on the boundary of) the box. | |
| Vector3D | Corner (int i) const |
| float | DistanceSq (const Vector3D &p) const |
| void | Expand (float amount) |
| Pushes min/max outward by amount on every axis. | |
| Vector3D | Extents () const |
| bool | IsValid () const |
| True if min is componentwise <= max. | |
| void | Merge (const AABB &o) |
| Grows this box to also cover o. | |
Public Attributes | |
| Vector3D | max {0.0f, 0.0f, 0.0f} |
| Vector3D | min {0.0f, 0.0f, 0.0f} |
|
default |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |