28 #include "precompiled.h"
56 debug_warn(L
"CFrustum::AddPlane: Too many planes");
88 if (
m_aPlanes[i].FindLineSegIntersection(start, end, &intersect) )
134 FarPoint.
X = Max.
X; FarPoint.
Y = Max.
Y; FarPoint.
Z = Max.
Z;
138 FarPoint.
X = Max.
X; FarPoint.
Y = Max.
Y; FarPoint.
Z = Min.
Z;
145 FarPoint.
X = Max.
X; FarPoint.
Y = Min.
Y; FarPoint.
Z = Max.
Z;
149 FarPoint.
X = Max.
X; FarPoint.
Y = Min.
Y; FarPoint.
Z = Min.
Z;
159 FarPoint.
X = Min.
X; FarPoint.
Y = Max.
Y; FarPoint.
Z = Max.
Z;
163 FarPoint.
X = Min.
X; FarPoint.
Y = Max.
Y; FarPoint.
Z = Min.
Z;
170 FarPoint.
X = Min.
X; FarPoint.
Y = Min.
Y; FarPoint.
Z = Max.
Z;
174 FarPoint.
X = Min.
X; FarPoint.
Y = Min.
Y; FarPoint.
Z = Min.
Z;
bool IsSphereVisible(const CVector3D ¢er, float radius) const
bool IsBoxVisible(const CVector3D &position, const CBoundingBoxAligned &bounds) const
bool IsPointVisible(const CVector3D &point) const
float DistanceToPlane(const CVector3D &point) const
PLANESIDE ClassifyPoint(const CVector3D &point) const
#define MAX_NUM_FRUSTUM_PLANES
void AddPlane(const CPlane &plane)
CPlane m_aPlanes[MAX_NUM_FRUSTUM_PLANES]
bool DoesSegmentIntersect(const CVector3D &start, const CVector3D &end)
void SetNumPlanes(size_t num)
#define debug_warn(expr)
display the error dialog with the given text.