Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
CFrustum Class Reference

#include <Frustum.h>

Collaboration diagram for CFrustum:

Public Member Functions

 CFrustum ()
 
 ~CFrustum ()
 
void SetNumPlanes (size_t num)
 
size_t GetNumPlanes () const
 
void AddPlane (const CPlane &plane)
 
void Transform (const CMatrix3D &m)
 
bool IsPointVisible (const CVector3D &point) const
 
bool DoesSegmentIntersect (const CVector3D &start, const CVector3D &end) const
 
bool IsSphereVisible (const CVector3D &center, float radius) const
 
bool IsBoxVisible (const CVector3D &position, const CBoundingBoxAligned &bounds) const
 
bool IsBoxVisible (const CBoundingBoxAligned &bounds) const
 
CPlaneoperator[] (size_t idx)
 
const CPlaneoperator[] (size_t idx) const
 

Private Attributes

CPlane m_Planes [MAX_NUM_FRUSTUM_PLANES]
 
size_t m_NumPlanes
 

Static Private Attributes

static const size_t MAX_NUM_FRUSTUM_PLANES = 10
 

Constructor & Destructor Documentation

◆ CFrustum()

CFrustum::CFrustum ( )

◆ ~CFrustum()

CFrustum::~CFrustum ( )

Member Function Documentation

◆ AddPlane()

void CFrustum::AddPlane ( const CPlane plane)

◆ DoesSegmentIntersect()

bool CFrustum::DoesSegmentIntersect ( const CVector3D start,
const CVector3D end 
) const

◆ GetNumPlanes()

size_t CFrustum::GetNumPlanes ( ) const
inline

◆ IsBoxVisible() [1/2]

bool CFrustum::IsBoxVisible ( const CBoundingBoxAligned bounds) const

◆ IsBoxVisible() [2/2]

bool CFrustum::IsBoxVisible ( const CVector3D position,
const CBoundingBoxAligned bounds 
) const

◆ IsPointVisible()

bool CFrustum::IsPointVisible ( const CVector3D point) const

◆ IsSphereVisible()

bool CFrustum::IsSphereVisible ( const CVector3D center,
float  radius 
) const

◆ operator[]() [1/2]

CPlane & CFrustum::operator[] ( size_t  idx)
inline

◆ operator[]() [2/2]

const CPlane & CFrustum::operator[] ( size_t  idx) const
inline

◆ SetNumPlanes()

void CFrustum::SetNumPlanes ( size_t  num)

◆ Transform()

void CFrustum::Transform ( const CMatrix3D m)

Member Data Documentation

◆ m_NumPlanes

size_t CFrustum::m_NumPlanes
private

◆ m_Planes

CPlane CFrustum::m_Planes[MAX_NUM_FRUSTUM_PLANES]
private

◆ MAX_NUM_FRUSTUM_PLANES

const size_t CFrustum::MAX_NUM_FRUSTUM_PLANES = 10
staticprivate

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