csSphere Class Reference
[Geometry utilities]
This class represents a sphere.
More...
#include <csgeom/sphere.h>
Public Member Functions | |
| csSphere (const csSphere &s) | |
| Copy Constructor. | |
| csSphere (const csVector3 ¢er, float radius) | |
| Create a new sphere. | |
| csSphere () | |
| Create a new empty sphere at (0,0,0). | |
| const csVector3 & | GetCenter () const |
| Get the center of this sphere. | |
| csVector3 & | GetCenter () |
| Get the center of this sphere. | |
| float | GetRadius () const |
| Get the radius of this sphere. | |
| csSphere & | operator+= (const csSphere &s) |
| Calculate the union of this sphere and another one. | |
| void | SetCenter (const csVector3 &c) |
| Set the center of this sphere. | |
| void | SetRadius (float r) |
| Set the radius of this sphere. | |
| bool | TestIntersect (const csSphere &sphere) const |
| Test if the two spheres have an intersection. | |
| void | Union (const csVector3 &ocenter, float oradius) |
| Calculate the union of this sphere and another. | |
Friends | |
| csSphere | operator+ (const csSphere &s1, const csSphere &s2) |
| Calculate the union of two spheres. | |
Detailed Description
This class represents a sphere.Definition at line 40 of file sphere.h.
Constructor & Destructor Documentation
| csSphere::csSphere | ( | ) | [inline] |
| csSphere::csSphere | ( | const csVector3 & | center, | |
| float | radius | |||
| ) | [inline] |
| csSphere::csSphere | ( | const csSphere & | s | ) | [inline] |
Member Function Documentation
| const csVector3& csSphere::GetCenter | ( | ) | const [inline] |
| csVector3& csSphere::GetCenter | ( | ) | [inline] |
| float csSphere::GetRadius | ( | ) | const [inline] |
| void csSphere::SetCenter | ( | const csVector3 & | c | ) | [inline] |
| void csSphere::SetRadius | ( | float | r | ) | [inline] |
| bool csSphere::TestIntersect | ( | const csSphere & | sphere | ) | const [inline] |
| 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:
- csgeom/sphere.h
Generated for Crystal Space 1.4.0 by doxygen 1.5.8
