|
Hymn to Beauty
C++ 3D Engine
|
A viewing frustum. More...
#include <Frustum.hpp>
Public Member Functions | |
| Frustum (const glm::mat4 &matrix) | |
| Create new frustum. More... | |
| bool | Intersects (const AxisAlignedBoundingBox &aabb) const |
| Check intersection between frustum and an axis-aligned bounding box. More... | |
| bool | Intersects (const Sphere &sphere) const |
| Check intersection between frustum and a sphere. More... | |
A viewing frustum.
Used for frustum culling.
|
explicit |
Create new frustum.
| matrix | View-projection matrix to create frustum planes from. |
| bool Frustum::Intersects | ( | const AxisAlignedBoundingBox & | aabb | ) | const |
Check intersection between frustum and an axis-aligned bounding box.
| aabb | The axis-aligned bounding box to check intersection against. |
| bool Frustum::Intersects | ( | const Sphere & | sphere | ) | const |
Check intersection between frustum and a sphere.
| sphere | The sphere to check intersection against. |