Camera view frustum planes container. More...
#include <frustum.hpp>
Public Member Functions | |
| Frustum (uint8 count=fullCount) noexcept | |
| Creates a new camera frustum plane container. | |
| Frustum (const f32x4x4 &viewProj) noexcept | |
| Extracts projection matrix frustum planes. | |
| uint8 | getPlaneCount () const noexcept |
| Returns view frustum plane count. | |
| void | setPlaneCount (uint8 count) |
| Sets view frustum plane count. | |
| void | normalize () noexcept |
| Normalizes view frustum planes. | |
Public Attributes | |
| Plane | planes [fullCount] |
Static Public Attributes | |
| static constexpr uint8 | fullCount = 6 |
Protected Attributes | |
| uint8 | count = fullCount |
Camera view frustum planes container.
Creates a new camera frustum plane container.
| count | target view frustum plane count |
|
inlineexplicitnoexcept |
Extracts projection matrix frustum planes.
| [in] | viewProj | target view * projection matrix |
|
inline |
Sets view frustum plane count.
| count | target view frustum plane count |
|
staticconstexpr |
Full frustum plane count. (Cube side count)