molecular
Public Types | Public Member Functions | List of all members
molecular::util::Frustum Class Reference

A frustum contains the space that is seen. More...

#include <Frustum.h>

Public Types

enum  PlaneNum {
  kNear = 0, kFar = 1, kLeft = 2, kRight = 3,
  kTop = 4, kBottom = 5
}
 

Public Member Functions

 Frustum (const Matrix< 4, 4 > &viewProjectionMatrix)
 
 Frustum (const Plane planes[6])
 
Plane::IntersectStatus Check (const Vector3 &point) const
 
Plane::IntersectStatus Check (const Vector3 &pos, float radius) const
 
Plane::IntersectStatus Check (const AxisAlignedBox &box) const
 
const PlaneGetPlane (PlaneNum plane) const
 
const std::array< Plane, 6 > & GetPlanes () const
 

Detailed Description

A frustum contains the space that is seen.

Member Enumeration Documentation

Enumerator
kNear 
kFar 
kLeft 
kRight 
kTop 
kBottom 

Constructor & Destructor Documentation

molecular::util::Frustum::Frustum ( const Matrix< 4, 4 > &  viewProjectionMatrix)
molecular::util::Frustum::Frustum ( const Plane  planes[6])

Member Function Documentation

Plane::IntersectStatus molecular::util::Frustum::Check ( const Vector3 point) const
Plane::IntersectStatus molecular::util::Frustum::Check ( const Vector3 pos,
float  radius 
) const
Plane::IntersectStatus molecular::util::Frustum::Check ( const AxisAlignedBox box) const
const Plane& molecular::util::Frustum::GetPlane ( PlaneNum  plane) const
inline
const std::array<Plane, 6>& molecular::util::Frustum::GetPlanes ( ) const
inline

The documentation for this class was generated from the following files: