Pyrogenesis  trunk
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
CBoundingSphere Class Reference

#include <BoundingSphere.h>

Collaboration diagram for CBoundingSphere:
Collaboration graph
[legend]

Public Member Functions

 CBoundingSphere ()
 
 CBoundingSphere (const CVector3D &center, float radius)
 
const CVector3DGetCenter ()
 
float GetRadius () const
 
bool RayIntersect (const CVector3D &origin, const CVector3D &dir) const
 Check if the ray, defined by an origin point and a direction unit vector interesects with the sphere. More...
 

Static Public Member Functions

static CBoundingSphere FromSweptBox (const CBoundingBoxAligned &bbox)
 Construct a bounding sphere that encompasses a bounding box swept through all possible rotations around the origin. More...
 

Private Attributes

CVector3D m_Center
 
float m_Radius
 

Constructor & Destructor Documentation

CBoundingSphere::CBoundingSphere ( )
inline
CBoundingSphere::CBoundingSphere ( const CVector3D center,
float  radius 
)
inline

Member Function Documentation

static CBoundingSphere CBoundingSphere::FromSweptBox ( const CBoundingBoxAligned bbox)
inlinestatic

Construct a bounding sphere that encompasses a bounding box swept through all possible rotations around the origin.

const CVector3D& CBoundingSphere::GetCenter ( )
inline
float CBoundingSphere::GetRadius ( ) const
inline
bool CBoundingSphere::RayIntersect ( const CVector3D origin,
const CVector3D dir 
) const
inline

Check if the ray, defined by an origin point and a direction unit vector interesects with the sphere.

Member Data Documentation

CVector3D CBoundingSphere::m_Center
private
float CBoundingSphere::m_Radius
private

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