10#include <utility/math/aabb.hpp>
27 glm::vec3 normal { 0.0f };
28 float distance = 0.0f;
71 bool intersects(
const glm::vec3 ¢er,
float radius)
const;
74 std::array<Plane, 6> _planes;
A view frustum represented by its six bounding planes.
bool intersects(const glm::vec3 ¢er, float radius) const
Test whether a bounding sphere intersects the frustum.
bool intersects(const utility::math::AabbF &box) const
Test whether an axis-aligned bounding box intersects the frustum.
static Frustum fromViewProjection(const glm::mat4 &viewProjection)
Build a frustum from a combined projection × view matrix.
A plane in 3D space in Hessian normal form.