decShapeSphere Class Reference

Analytic Sphere Shape. More...

#include <decShapeSphere.h>

Inheritance diagram for decShapeSphere:
decShape

List of all members.

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.

Detailed Description

Analytic Sphere Shape.

Defines an analytic sphere shape. Spheres have a radius and a position.

Author:
Plüss Roland
Version:
1.0
Date:
2008

Constructor & Destructor Documentation

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.


Member Function Documentation

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.


The documentation for this class was generated from the following file: