Basic frustum object. More...
#include <frustum.h>
Public Types | |
enum | ePlane { eTop = 0, eBottom = 1, eLeft = 2, eRight = 3, eNear = 4, eFar = 5, eEdgeCount = 12, ePlaneCount = 6 } |
this enum defines planes as if someone was standing at the apex of the frustum, and looking down it. More... | |
Public Member Functions | |
frustum_t (void) throw () | |
void | clear (void) throw () |
void | dump (IN const char *msg) const throw () |
eContains | containsRect (IN const rect3d_t &r) const throw () |
does the frustum contain the given rectangle? | |
eContains | containsSphere (IN const point3d_t &position, IN float radius) const throw () |
does the frustum contain the given sphere? | |
void | getEdge (IN int index, OUT point3d_t &p0, OUT point3d_t &p1) const throw () |
returns the endpoints of the specified edge (0 <= index < eEdgeCount) | |
Public Attributes | |
plane_t | plane [ePlaneCount] |
Basic frustum object.
This is a truncated 4-sided pyramid, also called a right square frustum. See http://en.wikipedia.org/wiki/Frustum
Definition at line 50 of file frustum.h.
enum frustum_t::ePlane |
this enum defines planes as if someone was standing at the apex of the frustum, and looking down it.
void frustum_t::dump | ( | IN const char * | msg | ) | const throw () [inline] |
does the frustum contain the given rectangle?
Definition at line 95 of file frustum.cpp.
eContains frustum_t::containsSphere | ( | IN const point3d_t & | position, | |
IN float | radius | |||
) | const throw () |
does the frustum contain the given sphere?
returns the endpoints of the specified edge (0 <= index < eEdgeCount)
Definition at line 141 of file frustum.cpp.
plane_t frustum_t::plane[ePlaneCount] |