4#include <game/mLib/m_aabb.hpp>
5#include <game/mLib/m_mtx.hpp>
6#include <game/mLib/m_sphere.hpp>
22 void set(f32 fovy, f32 aspect, f32 n, f32 f,
const mMtx_c &cameraMtx);
35 void set(f32 top, f32 bottom, f32 left, f32 right, f32 near, f32 far,
const mMtx_c &cameraMtx,
bool orthographic);
An axis-aligned bounding box.
bool intersectAABB(const mAABB_c *box) const
Checks whether the given bounding box is at least partially inside the frustum.
void set(f32 fovy, f32 aspect, f32 n, f32 f, const mMtx_c &cameraMtx)
Builds a symmetric perspective frustum.
mFrustum_c()
Constructs an empty frustum.
bool intersectSphere(const mSphere_c *sphere) const
Checks whether the given sphere is at least partially inside the frustum.