Analytic Sphere Shape. More...
#include <decShapeSphere.h>
Public Member Functions | |
Constructors and Destructors | |
| decShapeSphere (float radius) | |
| Creates a new analytic sphere shape with the given radius. | |
| decShapeSphere (float radius, const decVector &position) | |
| Creates a new analytic sphere shape with the given radius and position. | |
| virtual | ~decShapeSphere () |
| Cleans up the analytic sphere shape. | |
Management | |
| float | GetRadius () const |
| Retrieves the radius. | |
| void | SetRadius (float radius) |
| Sets the radius. | |
Visiting | |
| virtual void | Visit (decShapeVisitor *visitor) |
| Visits the analytic shape. | |
Analytic Sphere Shape.
Defines an analytic sphere shape. Spheres have a radius and a position.
| decShapeSphere::decShapeSphere | ( | float | radius ) |
Creates a new analytic sphere shape with the given radius.
| decShapeSphere::decShapeSphere | ( | float | radius, |
| const decVector & | position | ||
| ) |
Creates a new analytic sphere shape with the given radius and position.
| virtual decShapeSphere::~decShapeSphere | ( | ) | [virtual] |
Cleans up the analytic sphere shape.
| float decShapeSphere::GetRadius | ( | ) | const [inline] |
Retrieves the radius.
| void decShapeSphere::SetRadius | ( | float | radius ) |
Sets the radius.
| virtual void decShapeSphere::Visit | ( | decShapeVisitor * | visitor ) | [virtual] |
Visits the analytic shape.
Reimplemented from decShape.
1.7.2