Drake
Cylinder Class Referencefinal

Definition of a cylinder. More...

#include <geometry/shape_specification.h>

Inheritance diagram for Cylinder:
[legend]
Collaboration diagram for Cylinder:
[legend]

Public Member Functions

 Cylinder (double radius, double length)
 
double get_radius () const
 
double get_length () const
 
Implements CopyConstructible, CopyAssignable, MoveConstructible, MoveAssignable
 Cylinder (const Cylinder &)=default
 
Cylinderoperator= (const Cylinder &)=default
 
 Cylinder (Cylinder &&)=default
 
Cylinderoperator= (Cylinder &&)=default
 
- Public Member Functions inherited from Shape
virtual ~Shape ()
 
void Reify (ShapeReifier *reifier) const
 Causes this description to be reified in the given reifier. More...
 
std::unique_ptr< ShapeClone () const
 Creates a unique copy of this shape. More...
 

Additional Inherited Members

- Protected Member Functions inherited from Shape
template<typename S >
 Shape (ShapeTag< S > tag)
 Constructor available for derived class construction. More...
 
 Shape (const Shape &)=default
 
Shapeoperator= (const Shape &)=default
 
 Shape (Shape &&)=default
 
Shapeoperator= (Shape &&)=default
 

Detailed Description

Definition of a cylinder.

It is centered in its canonical frame with the length of the cylinder parallel with the frame's z-axis.

Constructor & Destructor Documentation

Cylinder ( const Cylinder )
default
Cylinder ( Cylinder &&  )
default
Cylinder ( double  radius,
double  length 
)

Member Function Documentation

double get_length ( ) const
inline
double get_radius ( ) const
inline
Cylinder& operator= ( const Cylinder )
default
Cylinder& operator= ( Cylinder &&  )
default

The documentation for this class was generated from the following files: