#include <vpGeom.h>

Public Member Functions | |
| vpSphere () | |
| vpSphere (scalar radius) | |
| void | SetRadius (scalar radius) |
| scalar | GetRadius (void) const |
| virtual void | GetShape (char *type, scalar *data) const |
| virtual Inertia | GetInertia (scalar density) const |
| virtual scalar | GetBoundingSphereRadius (void) const |
| virtual Vec3 | GetAABB (void) const |
| vpSphere::vpSphere | ( | ) |
default radius of the sphere is SCALAR_1_2.
| vpSphere::vpSphere | ( | scalar | radius | ) |
construct a sphere of the given radius.
| VP_INLINE void vpSphere::SetRadius | ( | scalar | radius | ) |
set a radius of the sphere.
| VP_INLINE scalar vpSphere::GetRadius | ( | void | ) | const |
get a radius of the sphere.
| VP_INLINE void vpSphere::GetShape | ( | char * | type, | |
| scalar * | data | |||
| ) | const [virtual] |
get a shape information. return type = 'S', data[0] = radius
Implements vpGeom.
| virtual Inertia vpSphere::GetInertia | ( | scalar | ) | const [virtual] |
get an inertia of the geometry.
Implements vpGeom.
| VP_INLINE scalar vpSphere::GetBoundingSphereRadius | ( | void | ) | const [virtual] |
get a radius of a bounding sphere.
Implements vpGeom.
| VP_INLINE Vec3 vpSphere::GetAABB | ( | void | ) | const [virtual] |
get an axis aligned bounding box which size is (-re[0], re[0]) X (-re[1], re[1]) X (-re[2], re[2]).
Implements vpGeom.
1.5.5