Represents a frustum in 3D space. More...
#include <frustum.hpp>
Public Member Functions | |
| void | update (const glm::mat4 &viewProj) |
| Extract planes from View-Projection Matrix. | |
| bool | testSphere (const glm::vec3 ¢er, float radius) const |
| Returns true if sphere is visible (or partially visible). | |
Public Attributes | |
| std::array< Plane, 6 > | planes |
Represents a frustum in 3D space.
Definition at line 31 of file frustum.hpp.
|
inline |
Returns true if sphere is visible (or partially visible).
Definition at line 62 of file frustum.hpp.
|
inline |
Extract planes from View-Projection Matrix.
| const | glm::mat4& viewProj View-Projection Matrix |
Definition at line 36 of file frustum.hpp.
| std::array<Plane, 6> vex::Frustum::planes |
Definition at line 32 of file frustum.hpp.