Public Methods | |
Sphere () | |
Sphere (Coord center, double radius) | |
void | setCenter (Coord center) |
void | setRadius (double radius) |
void | setParams (Coord center, double radius) |
void | getCenter (Coord ¢er) const |
void | getRadius (double &radius) const |
void | getParams (Coord ¢er, double &radius) const |
The sphere is defined by its center coordinate and a radius.
|
Default constructor. Creates a sphere centered at (0,0,0) with radius of DEFAULT_SPHERE_RADIUS. |
|
Constructor.
|
|
Get center of sphere.
|
|
Get parameters.
|
|
Get radius of the sphere.
|
|
Set the center.
|
|
Set parameters.
|
|
Set the radius.
|