Clarisse 5.0 SP8 SDK  5.0.5.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Types | Public Member Functions | List of all members
GMathFrustum Class Reference

Public Types

enum  { MAX_PLANE_COUNT = 4 }
 

Public Member Functions

 GMathFrustum (const GMathVec3d &origin, const GMathVec3d *normals, const unsigned int &plane_count=MAX_PLANE_COUNT)
 
 GMathFrustum (const GMathVec3d *origins, const GMathVec3d *normals, const unsigned int &plane_count=MAX_PLANE_COUNT)
 
void clear ()
 
void set_plane_count (const unsigned int &plane_count)
 
void set_planes (const GMathVec3d &origin, const GMathVec3d *normals, const unsigned int &plane_count=MAX_PLANE_COUNT)
 
void set_planes (const GMathVec3d *origins, const GMathVec3d *normals, const unsigned int &plane_count=MAX_PLANE_COUNT)
 
void set_origin (const GMathVec3d &origin)
 
void set_plane_origins (const GMathVec3d *origins)
 
void set_plane_normals (const GMathVec3d *normals)
 
void set_plane (const unsigned int &plane_index, const GMathVec3d &origin, const GMathVec3d &normal)
 
void set_plane_origin (const unsigned int &plane_index, const GMathVec3d &origin)
 
void set_plane_normal (const unsigned int &plane_index, const GMathVec3d &normal)
 
void transform (const GMathMatrix4x4d &xform, const GMathMatrix4x4d &inv_xform)
 
void transform (const GMathFrustum &frustum, const GMathMatrix4x4d &xform, const GMathMatrix4x4d &inv_xform)
 
void normalize ()
 
GMathPlane get_plane (const unsigned int &plane_index) const
 
GMathPlane operator[] (const unsigned int &plane_index) const
 
const GMathVec3d & get_plane_origin (const unsigned int &plane_index) const
 
const GMathVec3d & get_plane_normal (const unsigned int &plane_index) const
 
const double & get_plane_offset (const unsigned int &plane_index) const
 
double get_plane_norm (const unsigned int &plane_index) const
 
const unsigned int & get_plane_count () const
 
const GMathVec3d * get_plane_origins () const
 
const GMathVec3d * get_plane_normals () const
 
const double * get_plane_offsets () const
 
const bool is_valid () const
 
double eval_plane (const unsigned int &plane_index, const GMathVec3d &point) const
 
double get_plane_dist (const unsigned int &plane_index, const GMathVec3d &point) const