16 #ifndef SURGSIM_MATH_CYLINDERSHAPE_H 17 #define SURGSIM_MATH_CYLINDERSHAPE_H 19 #include "SurgSim/Framework/ObjectFactory.h" 20 #include "SurgSim/Math/Shape.h" 27 SURGSIM_STATIC_REGISTRATION(CylinderShape);
37 explicit CylinderShape(
double length = 0.0,
double radius = 0.0);
93 #endif // SURGSIM_MATH_CYLINDERSHAPE_H Wraps glewInit() to separate the glew opengl definitions from the osg opengl definitions only imgui n...
Definition: AddRandomSphereBehavior.cpp:36
bool isValid() const override
Definition: CylinderShape.cpp:92
double getLength() const
Get the cylinder length.
Definition: CylinderShape.cpp:36
CylinderShape(double length=0.0, double radius=0.0)
Constructor.
Definition: CylinderShape.cpp:24
Matrix33d getSecondMomentOfVolume() const override
Get the second central moment of the volume, commonly used to calculate the moment of inertia matrix...
Definition: CylinderShape.cpp:76
Cylinder shape: centered on (0 0 0), aligned along Y, defined with length and radius.
Definition: CylinderShape.h:31
Vector3d getCenter() const override
Get the volumetric center of the shape.
Definition: CylinderShape.cpp:71
double getVolume() const override
Get the volume of the shape.
Definition: CylinderShape.cpp:66
int getType() const override
Definition: CylinderShape.cpp:31
void setLength(double length)
Set the cylinder length.
Definition: CylinderShape.cpp:47
void setRadius(double radius)
Set the cylinder radius.
Definition: CylinderShape.cpp:53
double getRadius() const
Get the cylinder radius.
Definition: CylinderShape.cpp:41
Generic rigid shape class defining a shape.
Definition: Shape.h:65