Support Forum G3D Web Page |
Classes | |
class | Face |
Public Member Functions | |
Box | boundingBox (float minObjectSpaceDepth=finf()) const |
void | getPlanes (Array< Plane > &plane) const |
The planes in the frustum. More... | |
Public Attributes | |
SmallArray< Face, 6 > | faceArray |
The faces in the frustum. More... | |
SmallArray< Vector4, 8 > | vertexPos |
The vertices, in homogeneous space. More... | |
minObjectSpaceDepth | Smallest value permitted for the near plane Z - far plane Z (e.g., to force finite bounds) |
SmallArray<Face, 6> G3D::Frustum::faceArray |
The faces in the frustum.
When the far plane is at infinity, there are 5 faces, otherwise there are 6. The faces are in the order N,R,L,B,T,[F].
Referenced by G3D::PointKDTree< T, PositionFunc, HashFunc, EqualsFunc >::getIntersectingMembers(), and G3D::KDTree< T, BoundsFunc, HashFunc, EqualsFunc >::getIntersectingMembers().
SmallArray<Vector4, 8> G3D::Frustum::vertexPos |
The vertices, in homogeneous space.
The order is that of the near face, starting from the (object space) +x,+y corner and proceeding CCW from the camera's point of view; followed by the far face also in CCW order.
If w == 0, a vertex is at infinity.