Definition of a cylinder.
It is centered in its canonical frame with the length of the cylinder parallel with the frame's z-axis.
#include <drake/geometry/shape_specification.h>
Public Member Functions | |
Cylinder (double radius, double length) | |
Constructs a cylinder with the given radius and length . More... | |
double | radius () const |
double | length () const |
Implements CopyConstructible, CopyAssignable, MoveConstructible, MoveAssignable | |
Cylinder (const Cylinder &)=default | |
Cylinder & | operator= (const Cylinder &)=default |
Cylinder (Cylinder &&)=default | |
Cylinder & | operator= (Cylinder &&)=default |
![]() | |
virtual | ~Shape () |
void | Reify (ShapeReifier *reifier, void *user_data=nullptr) const |
Causes this description to be reified in the given reifier . More... | |
std::unique_ptr< Shape > | Clone () const |
Creates a unique copy of this shape. More... | |
Additional Inherited Members | |
![]() | |
template<typename S > | |
Shape (ShapeTag< S > tag) | |
Constructor available for derived class construction. More... | |
Shape (const Shape &)=default | |
Shape & | operator= (const Shape &)=default |
Shape (Shape &&)=default | |
Shape & | operator= (Shape &&)=default |
Cylinder | ( | double | radius, |
double | length | ||
) |
Constructs a cylinder with the given radius
and length
.
std::exception | if radius or length are not strictly positive. |
double length | ( | ) | const |
double radius | ( | ) | const |