#include <BoundingSphere.h>
CBoundingSphere::CBoundingSphere |
( |
| ) |
|
|
inline |
CBoundingSphere::CBoundingSphere |
( |
const CVector3D & |
center, |
|
|
float |
radius |
|
) |
| |
|
inline |
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.
float CBoundingSphere::m_Radius |
|
private |
The documentation for this class was generated from the following file: