Aeon Engine c550894
AeonGames Open Source Game Engine
Loading...
Searching...
No Matches
AeonGames::Frustum Class Reference

View frustum defined by six clipping planes, extracted from a projection (or view-projection) matrix. More...

#include <aeongames/Frustum.hpp>

Collaboration diagram for AeonGames::Frustum:
Collaboration graph

Public Member Functions

DLL Frustum ()
 Default constructor.
DLL Frustum (const Matrix4x4 &aMatrix)
 Constructs a frustum by extracting the six clipping planes from a matrix.
DLL ~Frustum ()
 destructor.
DLL bool Intersects (const AABB &aAABB) const
 Tests whether an axis-aligned bounding box intersects or is inside the frustum.

Detailed Description

View frustum defined by six clipping planes, extracted from a projection (or view-projection) matrix.

Definition at line 34 of file Frustum.hpp.

Constructor & Destructor Documentation

◆ Frustum()

AeonGames::Frustum::Frustum ( const Matrix4x4 & aMatrix)

Constructs a frustum by extracting the six clipping planes from a matrix.

Parameters
aMatrixProjection or view-projection matrix.

Definition at line 26 of file Frustum.cpp.

Member Function Documentation

◆ Intersects()

bool AeonGames::Frustum::Intersects ( const AABB & aAABB) const

Tests whether an axis-aligned bounding box intersects or is inside the frustum.

Parameters
aAABBThe AABB to test.
Returns
true if the AABB intersects or is inside the frustum.

Definition at line 84 of file Frustum.cpp.


The documentation for this class was generated from the following files: