33 #ifndef DART_DYNAMICS_SPHERESHAPE_HPP_ 34 #define DART_DYNAMICS_SPHERESHAPE_HPP_ 36 #include "dart/dynamics/Shape.hpp" 51 const std::string&
getType()
const override;
86 #endif // DART_DYNAMICS_SPHERESHAPE_HPP_ static double computeVolume(double radius)
Compute volume from given properties.
Definition: SphereShape.cpp:85
const std::string & getType() const override
Returns a string representing the shape type.
Definition: SphereShape.cpp:53
static const std::string & getStaticType()
Returns shape type for this class.
Definition: SphereShape.cpp:59
SphereShape(double radius)
Constructor.
Definition: SphereShape.cpp:41
double getRadius() const
Get radius of this box.
Definition: SphereShape.cpp:79
static Eigen::Matrix3d computeInertia(double radius, double mass)
Compute moments of inertia of a Sphere.
Definition: SphereShape.cpp:91
Definition: Aspect.cpp:40
void updateBoundingBox() const override
Updates bounding box.
Definition: SphereShape.cpp:109
void updateVolume() const override
Updates volume.
Definition: SphereShape.cpp:117
virtual ~SphereShape()
Destructor.
Definition: SphereShape.cpp:47
void setRadius(double radius)
Set radius of this box.
Definition: SphereShape.cpp:66
Definition: SphereShape.hpp:41