ZeroZero Game Engine
v0.0
A 3D game engine using Vulkan & Jolt
|
A 3D axis-aligned bounding box.
Public Member Functions | |
AABB () = default | |
AABB (const vec3 &min, const vec3 &max) | |
AABB | toGlobal (const mat4 &transform) const |
Public Attributes | |
vec3 | min {} |
leftmost corner | |
vec3 | max {} |
rightmost corner | |
|
default |
Creates an empty bounding box
|
inline |
Creates a bounding box
AABB toGlobal | ( | const mat4 & | transform | ) | const |
Apply the given transform to the bounding box