#include <IceBoundingSphere.h>
Public Member Functions | |
inline_ const Point & | Center () const |
BSphereMethod | Compute (udword nb_verts, const Point *verts) |
inline_ bool | Contains (const Point &p) const |
inline_ bool | Contains (const Sphere &sphere) const |
inline_ BOOL | Contains (const AABB &aabb) const |
bool | FastCompute (udword nb_verts, const Point *verts) |
inline_ const Point & | GetCenter () const |
inline_ float | GetRadius () const |
inline_ bool | Intersect (const Sphere &sphere) const |
inline_ BOOL | IsValid () const |
inline_ float | Radius () const |
inline_ Sphere & | Set (const Point ¢er, float radius) |
inline_ Sphere & | SetCenter (const Point ¢er) |
inline_ Sphere & | SetRadius (float radius) |
inline_ | Sphere () |
Constructor. More... | |
inline_ | Sphere (const Point ¢er, float radius) |
Constructor. More... | |
Sphere (udword nb_verts, const Point *verts) | |
Constructor. More... | |
inline_ | Sphere (const Sphere &sphere) |
Copy constructor. More... | |
inline_ | ~Sphere () |
Destructor. More... | |
Public Attributes | |
Point | mCenter |
Sphere center. More... | |
float | mRadius |
Sphere radius. More... | |
Definition at line 24 of file IceBoundingSphere.h.
|
inline |
Constructor.
Definition at line 28 of file IceBoundingSphere.h.
Constructor.
Definition at line 30 of file IceBoundingSphere.h.
Copy constructor.
Definition at line 34 of file IceBoundingSphere.h.
|
inline |
Destructor.
Definition at line 36 of file IceBoundingSphere.h.
Definition at line 45 of file IceBoundingSphere.h.
BSphereMethod Sphere::Compute | ( | udword | nb_verts, |
const Point * | verts | ||
) |
Tests if a point is contained within the sphere.
p | [in] the point to test |
Definition at line 59 of file IceBoundingSphere.h.
Tests if a sphere is contained within the sphere.
sphere | [in] the sphere to test |
Definition at line 71 of file IceBoundingSphere.h.
Tests if a box is contained within the sphere.
aabb | [in] the box to test |
Definition at line 87 of file IceBoundingSphere.h.
Definition at line 42 of file IceBoundingSphere.h.
|
inline |
Definition at line 43 of file IceBoundingSphere.h.
Tests if the sphere intersects another sphere
sphere | [in] the other sphere |
Definition at line 119 of file IceBoundingSphere.h.
Checks the sphere is valid.
Definition at line 131 of file IceBoundingSphere.h.
|
inline |
Definition at line 46 of file IceBoundingSphere.h.
Definition at line 48 of file IceBoundingSphere.h.
Definition at line 49 of file IceBoundingSphere.h.
Definition at line 50 of file IceBoundingSphere.h.
Point Sphere::mCenter |
Sphere center.
Definition at line 138 of file IceBoundingSphere.h.
float Sphere::mRadius |
Sphere radius.
Definition at line 139 of file IceBoundingSphere.h.