List of all members.
Public Member Functions |
| AABB (glm::vec3 min=glm::vec3(FLT_MAX), glm::vec3 max=glm::vec3(-FLT_MAX)) |
AABB | transform (glm::mat4 mat) const |
void | clear () |
void | addPoint (glm::vec3 point) |
glm::vec3 | center () const |
glm::vec3 | diagonal () const |
bool | operator== (const AABB &other) const |
bool | operator!= (const AABB &other) const |
void | operator= (const AABB &other) |
bool | uninitialized () |
bool | empty () |
bool | intersect (const Ray &r, float &tNear, float &tFar, int &nearAxis, int &farAxis) |
bool | intersect (const AABB &aabb) |
bool | contains (glm::vec3 point) |
Public Attributes |
glm::vec3 | min |
glm::vec3 | max |
Detailed Description
Definition at line 16 of file aabb.h.
Member Function Documentation
void kick::AABB::clear |
( |
| ) |
|
Set value to {max,min}
Definition at line 73 of file aabb.cpp.
bool kick::AABB::empty |
( |
| ) |
|
Returns true if min == max
Definition at line 69 of file aabb.cpp.
AABB kick::AABB::transform |
( |
glm::mat4 |
mat | ) |
const |
Transforms the eight points of the Axis-Aligned Bounding Box into a new AABB
bool kick::AABB::uninitialized |
( |
| ) |
|
Returns true if min = vec3(FLT_MAX) and max = vec3(-FLT_MAX)
Definition at line 65 of file aabb.cpp.
The documentation for this struct was generated from the following files:
- /Users/morten/Programmering/cpp/kick/src/kick/math/aabb.h
- /Users/morten/Programmering/cpp/kick/src/kick/math/aabb.cpp