This class represents a sphere.
More...
#include <csgeom/sphere.h>
List of all members.
Detailed Description
This class represents a sphere.
Definition at line 40 of file sphere.h.
Constructor & Destructor Documentation
csSphere::csSphere |
( |
|
) |
[inline] |
Create a new empty sphere at (0,0,0).
Definition at line 48 of file sphere.h.
csSphere::csSphere |
( |
const csVector3 & |
center, |
|
|
float |
radius | |
|
) |
| | [inline] |
Create a new sphere.
Definition at line 55 of file sphere.h.
csSphere::csSphere |
( |
const csSphere & |
s |
) |
[inline] |
Copy Constructor.
Definition at line 62 of file sphere.h.
Member Function Documentation
const csVector3& csSphere::GetCenter |
( |
|
) |
const [inline] |
Get the center of this sphere.
Definition at line 67 of file sphere.h.
Get the center of this sphere.
Definition at line 65 of file sphere.h.
float csSphere::GetRadius |
( |
|
) |
const [inline] |
Get the radius of this sphere.
Definition at line 71 of file sphere.h.
Calculate the union of this sphere and another one.
Definition at line 82 of file sphere.h.
void csSphere::SetCenter |
( |
const csVector3 & |
c |
) |
[inline] |
Set the center of this sphere.
Definition at line 69 of file sphere.h.
void csSphere::SetRadius |
( |
float |
r |
) |
[inline] |
Set the radius of this sphere.
Definition at line 73 of file sphere.h.
bool csSphere::TestIntersect |
( |
const csSphere & |
sphere |
) |
const [inline] |
Test if the two spheres have an intersection.
Definition at line 89 of file sphere.h.
void csSphere::Union |
( |
const csVector3 & |
ocenter, |
|
|
float |
oradius | |
|
) |
| | |
Calculate the union of this sphere and another.
Friends And Related Function Documentation
Calculate the union of two spheres.
The documentation for this class was generated from the following file: