Pyrogenesis
trunk
|
#include <Frustum.h>
Public Member Functions | |
CFrustum () | |
~CFrustum () | |
void | SetNumPlanes (size_t num) |
size_t | GetNumPlanes () const |
void | AddPlane (const CPlane &plane) |
void | Transform (CMatrix3D &m) |
bool | IsPointVisible (const CVector3D &point) const |
bool | DoesSegmentIntersect (const CVector3D &start, const CVector3D &end) const |
bool | IsSphereVisible (const CVector3D ¢er, float radius) const |
bool | IsBoxVisible (const CVector3D &position, const CBoundingBoxAligned &bounds) const |
bool | IsBoxVisible (const CBoundingBoxAligned &bounds) const |
CPlane & | operator[] (size_t idx) |
const CPlane & | operator[] (size_t idx) const |
Public Attributes | |
CPlane | m_aPlanes [MAX_NUM_FRUSTUM_PLANES] |
Private Attributes | |
size_t | m_NumPlanes |
CFrustum::CFrustum | ( | ) |
CFrustum::~CFrustum | ( | ) |
void CFrustum::AddPlane | ( | const CPlane & | plane | ) |
|
inline |
bool CFrustum::IsBoxVisible | ( | const CVector3D & | position, |
const CBoundingBoxAligned & | bounds | ||
) | const |
bool CFrustum::IsBoxVisible | ( | const CBoundingBoxAligned & | bounds | ) | const |
bool CFrustum::IsPointVisible | ( | const CVector3D & | point | ) | const |
bool CFrustum::IsSphereVisible | ( | const CVector3D & | center, |
float | radius | ||
) | const |
|
inline |
|
inline |
void CFrustum::SetNumPlanes | ( | size_t | num | ) |
void CFrustum::Transform | ( | CMatrix3D & | m | ) |
CPlane CFrustum::m_aPlanes[MAX_NUM_FRUSTUM_PLANES] |
|
private |