#include <BoundingSphere.h>
◆ CBoundingSphere() [1/2]
CBoundingSphere::CBoundingSphere |
( |
| ) |
|
|
inline |
◆ CBoundingSphere() [2/2]
CBoundingSphere::CBoundingSphere |
( |
const CVector3D & |
center, |
|
|
float |
radius |
|
) |
| |
|
inline |
◆ FromSweptBox()
Construct a bounding sphere that encompasses a bounding box swept through all possible rotations around the origin.
◆ GetCenter()
const CVector3D & CBoundingSphere::GetCenter |
( |
| ) |
const |
|
inline |
◆ GetRadius()
float CBoundingSphere::GetRadius |
( |
| ) |
const |
|
inline |
◆ RayIntersect()
bool CBoundingSphere::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.
The direction should be normalized.
◆ m_Center
◆ m_Radius
float CBoundingSphere::m_Radius |
|
private |
The documentation for this class was generated from the following files: