Support Forum       G3D Web Page     
Classes | Public Member Functions | Public Attributes | List of all members
G3D::Frustum Class Reference

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...
 

Detailed Description

See also
Projection

Member Function Documentation

◆ boundingBox()

Box G3D::Frustum::boundingBox ( float  minObjectSpaceDepth = finf()) const
Parameters
minObjectSpaceDepthSmallest value permitted for the near plane Z - far plane Z (e.g., to force finite bounds)

◆ getPlanes()

void G3D::Frustum::getPlanes ( Array< Plane > &  plane) const

The planes in the frustum.

Member Data Documentation

◆ faceArray

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().

◆ vertexPos

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.


documentation generated on Wed Nov 24 2021 08:01:55 using doxygen 1.8.15