StevEngine
StevEngine is a customizable C++ game engine.
|
Axis-aligned bounding box in 3D space. More...
#include <utilities/Range3.hpp>
Public Member Functions | |
Range3 () | |
Create empty range at origin. | |
Range3 (double lowX, double highX, double lowY, double highY, double lowZ, double highZ) | |
Create range from component bounds. | |
Range3 (const Vector3 &low, const Vector3 &high) | |
Create range from min/max vectors. | |
Vector3 | GetCenter () const |
Get center point of range. | |
Vector3 | GetSize () const |
Get size of range. | |
operator JPH::AABox () const | |
Convert to Jolt AABB. | |
Range3 & | operator= (const JPH::AABox &other) |
Assign from Jolt AABB. | |
Range3 (const JPH::AABox &other) | |
Create from Jolt AABB. | |
Public Attributes | |
Vector3 | Low |
Minimum point (lower bounds) | |
Vector3 | High |
Maximum point (upper bounds) | |
Axis-aligned bounding box in 3D space.
Represents a box in 3D space defined by minimum and maximum points. Used for bounds checking and collision detection.
StevEngine::Utilities::Range3::Range3 | ( | double | lowX, |
double | highX, | ||
double | lowY, | ||
double | highY, | ||
double | lowZ, | ||
double | highZ ) |
Create range from component bounds.
lowX | Minimum X |
highX | Maximum X |
lowY | Minimum Y |
highY | Maximum Y |
lowZ | Minimum Z |
highZ | Maximum Z |
Create range from min/max vectors.
low | Minimum point |
high | Maximum point |
Vector3 StevEngine::Utilities::Range3::GetCenter | ( | ) | const |
Get center point of range.
Vector3 StevEngine::Utilities::Range3::GetSize | ( | ) | const |
Get size of range.