![]() |
Public API Reference |
#include <sphere.h>
Public Methods | |
csSphere () | |
Create a new empty sphere at (0,0,0). More... | |
csSphere (const csVector3 ¢er, float radius) | |
Create a new sphere. More... | |
csSphere (const csSphere &s) | |
Copy Constructor. More... | |
csVector3 & | GetCenter () |
Get the center of this sphere. More... | |
const csVector3 & | GetCenter () const |
Get the center of this sphere. More... | |
void | SetCenter (const csVector3 &c) |
Set the center of this sphere. More... | |
float | GetRadius () const |
Get the radius of this sphere. More... | |
void | SetRadius (float r) |
Set the radius of this sphere. More... | |
void | Union (const csVector3 &ocenter, float oradius) |
Calculate the union of this sphere and another. More... | |
csSphere & | operator+= (const csSphere &s) |
Calculate the union of this sphere and another one. More... | |
Friends | |
csSphere | operator+ (const csSphere &s1, const csSphere &s2) |
Calculate the union of two spheres. More... |
Definition at line 36 of file sphere.h.
|
Create a new empty sphere at (0,0,0).
Definition at line 44 of file sphere.h. References csVector3::Set. |
|
Create a new sphere.
|
|
Copy Constructor.
|
|
Get the center of this sphere.
|
|
Get the center of this sphere.
|
|
Get the radius of this sphere.
|
|
Calculate the union of this sphere and another one.
|
|
Set the center of this sphere.
|
|
Set the radius of this sphere.
|
|
Calculate the union of this sphere and another.
Referenced by operator+=. |
|
Calculate the union of two spheres.
|