![]()  | 
  
    mrs_lib
    
   Various reusable classes, functions and utilities for use in MRS projects 
   | 
 
geometric representation of a cylinder More...
#include <shapes.h>
Public Types | |
| enum | { BOTTOM = 0 , TOP = 1 } | 
| cap indexing  | |
Public Member Functions | |
| Cylinder () | |
| constructor without setting the internal variables  | |
| ~Cylinder () | |
| destructor  | |
| Cylinder (Eigen::Vector3d center, double radius, double height, Eigen::Quaterniond orientation) | |
| constructor using a given center point, radius, height and orietnation   | |
| const Eigen::Vector3d | center () const | 
| getter for the center point   | |
| const Eigen::Quaterniond | orientation () const | 
| getter for the orientation   | |
| double | r () const | 
| getter for cap radius   | |
| double | h () const | 
| getter for the body height   | |
| const Ellipse | getCap (int index) const | 
| getter for a cap corresponding to a provided index   | |
geometric representation of a cylinder
| mrs_lib::geometry::Cylinder::Cylinder | ( | Eigen::Vector3d | center, | 
| double | radius, | ||
| double | height, | ||
| Eigen::Quaterniond | orientation | ||
| ) | 
constructor using a given center point, radius, height and orietnation
| center | geometric center in the middle of body height | 
| radius | radius of the cap | 
| height | distance between caps | 
| orientation | quaternion | 
| const Eigen::Vector3d mrs_lib::geometry::Cylinder::center | ( | ) | const | 
getter for the center point
| const Ellipse mrs_lib::geometry::Cylinder::getCap | ( | int | index | ) | const | 
getter for a cap corresponding to a provided index
| index | of the cap | 
| double mrs_lib::geometry::Cylinder::h | ( | ) | const | 
getter for the body height
| const Eigen::Quaterniond mrs_lib::geometry::Cylinder::orientation | ( | ) | const | 
getter for the orientation
| double mrs_lib::geometry::Cylinder::r | ( | ) | const | 
getter for cap radius