Center at zero point sphere. More...
#include <hpp/fcl/shape/geometric_shapes.h>
Public Member Functions | |
Sphere (FCL_REAL radius_) | |
void | computeLocalAABB () |
Compute AABB. | |
NODE_TYPE | getNodeType () const |
Get node type: a sphere. | |
Matrix3f | computeMomentofInertia () const |
compute the inertia matrix, related to the origin | |
FCL_REAL | computeVolume () const |
compute the volume | |
Public Attributes | |
FCL_REAL | radius |
Radius of the sphere. |
Center at zero point sphere.
fcl::Sphere::Sphere | ( | FCL_REAL | radius_ | ) | [inline] |
void fcl::Sphere::computeLocalAABB | ( | ) | [virtual] |
Compute AABB.
Implements fcl::CollisionGeometry.
Matrix3f fcl::Sphere::computeMomentofInertia | ( | ) | const [inline, virtual] |
compute the inertia matrix, related to the origin
Reimplemented from fcl::CollisionGeometry.
References computeVolume(), and radius.
FCL_REAL fcl::Sphere::computeVolume | ( | ) | const [inline, virtual] |
compute the volume
Reimplemented from fcl::CollisionGeometry.
References radius.
Referenced by computeMomentofInertia().
NODE_TYPE fcl::Sphere::getNodeType | ( | ) | const [inline, virtual] |
Radius of the sphere.
Referenced by computeMomentofInertia(), computeVolume(), and fcl::generateBVHModel().