|
Hymn to Beauty
C++ 3D Engine
|
An axis-aligned bounding box. More...
#include <AxisAlignedBoundingBox.hpp>
Public Member Functions | |
| AxisAlignedBoundingBox (const glm::vec3 &dimensions={0.f, 0.f, 0.f}, const glm::vec3 &origin={0.f, 0.f, 0.f}, const glm::vec3 &minVertex={0.f, 0.f, 0.f}, const glm::vec3 &maxVertex={0.f, 0.f, 0.f}) | |
| Create new axis-aligned bounding box. More... | |
| bool | Intersects (const Frustum &frustum) const |
| Check interesection between the axis-aligned bounding box and a frustum. More... | |
Public Attributes | |
| glm::vec3 | dimensions |
| Dimensions. More... | |
| glm::vec3 | origin |
| Origin. More... | |
| glm::vec3 | minVertex |
| Min vertex. More... | |
| glm::vec3 | maxVertex |
| Max vertex. More... | |
An axis-aligned bounding box.
Used for intersection testing.
| AxisAlignedBoundingBox::AxisAlignedBoundingBox | ( | const glm::vec3 & | dimensions = {0.f, 0.f, 0.f}, |
| const glm::vec3 & | origin = {0.f, 0.f, 0.f}, |
||
| const glm::vec3 & | minVertex = {0.f, 0.f, 0.f}, |
||
| const glm::vec3 & | maxVertex = {0.f, 0.f, 0.f} |
||
| ) |
Create new axis-aligned bounding box.
| dimensions | Dimensions. |
| origin | Origin. |
| minVertex | Min vertex. |
| maxVertex | Max vertex. |
| bool AxisAlignedBoundingBox::Intersects | ( | const Frustum & | frustum | ) | const |
Check interesection between the axis-aligned bounding box and a frustum.
| frustum | The frustum to check intersection against. |
| glm::vec3 Video::AxisAlignedBoundingBox::dimensions |
Dimensions.
| glm::vec3 Video::AxisAlignedBoundingBox::maxVertex |
Max vertex.
| glm::vec3 Video::AxisAlignedBoundingBox::minVertex |
Min vertex.
| glm::vec3 Video::AxisAlignedBoundingBox::origin |
Origin.