#include <Frustum.h>
Detailed Description
Definition at line 33 of file Frustum.h.
Constructor & Destructor Documentation
kge::math::Frustum::Frustum |
( |
| ) |
|
kge::math::Frustum::~Frustum |
( |
| ) |
|
Member Function Documentation
Checks the frustum collision with sphere and returns ECT_In or ECT_Out.
Checks the frustum collision with AABB and returns ECT_In or ECT_Out.
AABB* kge::math::Frustum::GetBoundingBox |
( |
| ) |
|
Returns the bounding box.
Vector* kge::math::Frustum::GetCenter |
( |
| ) |
|
Returns the center of the frustum.
Vector* kge::math::Frustum::GetCorners |
( |
| ) |
|
Returns the 8 frustum corners.
Vector kge::math::Frustum::GetFarLeftDownPoint |
( |
| ) |
|
Returns the point which is on the far left bottom corner inside the the view frustum.
Vector kge::math::Frustum::GetFarLeftUpPoint |
( |
| ) |
|
Returns the point which is on the far left upper corner inside the the view frustum.
Vector kge::math::Frustum::GetFarRightDownPoint |
( |
| ) |
|
Returns the point which is on the far Right bottom corner inside the the view frustum.
Vector kge::math::Frustum::GetFarRightUpPoint |
( |
| ) |
|
Returns the point which is on the far Right upper corner inside the the view frustum.
virtual void kge::math::Frustum::Init |
( |
const Matrix * |
pMatrixView, |
|
|
const Matrix * |
pMatrixProjection |
|
) |
| |
|
virtual |
Create the frustum culling with camera matrices.
- Parameters
-
pMatrixView | The camera's view matrix. |
pMatrixProjection | The camera's projection matrix. |
bool kge::math::Frustum::TestSphere |
( |
const Sphere * |
pSphere | ) |
const |
Checks the frustum collision with sphere.
bool kge::math::Frustum::TestSweptSphere |
( |
Sphere & |
sphere, |
|
|
Vector & |
sweepDir |
|
) |
| const |
Member Data Documentation
bool kge::math::Frustum::m_bCalcAABB |
|
protected |
Matrix kge::math::Frustum::m_mViewProj |
|
protected |
AABB* kge::math::Frustum::m_pAABB |
|
protected |
Vector* kge::math::Frustum::m_pCameraPosition |
Plane* kge::math::Frustum::m_pSides |
|
protected |
Vector kge::math::Frustum::m_vCenter |
|
protected |
Vector kge::math::Frustum::m_vCorners[8] |
|
protected |
The documentation for this class was generated from the following file: