#include <OPC_IceHook.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. | |
inline_ | Sphere (const Point ¢er, float radius) |
Constructor. | |
Sphere (udword nb_verts, const Point *verts) | |
Constructor. | |
inline_ | Sphere (const Sphere &sphere) |
Copy constructor. | |
inline_ | ~Sphere () |
Destructor. | |
Public Attributes | |
Point | mCenter |
Sphere center. | |
float | mRadius |
Sphere radius. |
Definition at line 25 of file OPC_IceHook.h.
inline_ IceMaths::Sphere::Sphere | ( | ) | [inline] |
Constructor.
Definition at line 29 of file OPC_IceHook.h.
inline_ IceMaths::Sphere::Sphere | ( | const Point & | center, |
float | radius | ||
) | [inline] |
Constructor.
Definition at line 31 of file OPC_IceHook.h.
IceMaths::Sphere::Sphere | ( | udword | nb_verts, |
const Point * | verts | ||
) |
Constructor.
inline_ IceMaths::Sphere::Sphere | ( | const Sphere & | sphere | ) | [inline] |
Copy constructor.
Definition at line 35 of file OPC_IceHook.h.
inline_ IceMaths::Sphere::~Sphere | ( | ) | [inline] |
Destructor.
Definition at line 37 of file OPC_IceHook.h.
inline_ const Point& IceMaths::Sphere::Center | ( | ) | const [inline] |
Definition at line 46 of file OPC_IceHook.h.
BSphereMethod IceMaths::Sphere::Compute | ( | udword | nb_verts, |
const Point * | verts | ||
) |
inline_ bool IceMaths::Sphere::Contains | ( | const Point & | p | ) | const [inline] |
Tests if a point is contained within the sphere.
p | [in] the point to test |
Definition at line 60 of file OPC_IceHook.h.
inline_ bool IceMaths::Sphere::Contains | ( | const Sphere & | sphere | ) | const [inline] |
Tests if a sphere is contained within the sphere.
sphere | [in] the sphere to test |
Definition at line 72 of file OPC_IceHook.h.
inline_ BOOL IceMaths::Sphere::Contains | ( | const AABB & | aabb | ) | const [inline] |
Tests if a box is contained within the sphere.
aabb | [in] the box to test |
Definition at line 88 of file OPC_IceHook.h.
bool IceMaths::Sphere::FastCompute | ( | udword | nb_verts, |
const Point * | verts | ||
) |
inline_ const Point& IceMaths::Sphere::GetCenter | ( | ) | const [inline] |
Definition at line 43 of file OPC_IceHook.h.
inline_ float IceMaths::Sphere::GetRadius | ( | ) | const [inline] |
Definition at line 44 of file OPC_IceHook.h.
inline_ bool IceMaths::Sphere::Intersect | ( | const Sphere & | sphere | ) | const [inline] |
Tests if the sphere intersects another sphere
sphere | [in] the other sphere |
Definition at line 120 of file OPC_IceHook.h.
inline_ BOOL IceMaths::Sphere::IsValid | ( | ) | const [inline] |
Checks the sphere is valid.
Definition at line 132 of file OPC_IceHook.h.
inline_ float IceMaths::Sphere::Radius | ( | ) | const [inline] |
Definition at line 47 of file OPC_IceHook.h.
inline_ Sphere& IceMaths::Sphere::Set | ( | const Point & | center, |
float | radius | ||
) | [inline] |
Definition at line 49 of file OPC_IceHook.h.
inline_ Sphere& IceMaths::Sphere::SetCenter | ( | const Point & | center | ) | [inline] |
Definition at line 50 of file OPC_IceHook.h.
inline_ Sphere& IceMaths::Sphere::SetRadius | ( | float | radius | ) | [inline] |
Definition at line 51 of file OPC_IceHook.h.
Sphere center.
Definition at line 139 of file OPC_IceHook.h.
Sphere radius.
Definition at line 140 of file OPC_IceHook.h.