Public Member Functions | Public Attributes
fcl::Sphere Class Reference

Center at zero point sphere. More...

#include <hpp/fcl/shape/geometric_shapes.h>

Inheritance diagram for fcl::Sphere:
[legend]
Collaboration diagram for fcl::Sphere:
[legend]

List of all members.

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.

Detailed Description

Center at zero point sphere.


Constructor & Destructor Documentation

fcl::Sphere::Sphere ( FCL_REAL  radius_) [inline]

Member Function Documentation

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]

Get node type: a sphere.

Reimplemented from fcl::CollisionGeometry.

References fcl::GEOM_SPHERE.


Member Data Documentation

Radius of the sphere.

Referenced by computeMomentofInertia(), computeVolume(), and fcl::generateBVHModel().

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines