Definition of a cylinder.
It is centered in its canonical frame with the length of the cylinder parallel with the frame's z-axis.
|
| | Cylinder (double radius, double length) |
| | Constructs a cylinder with the given radius and length.
|
| | Cylinder (const Vector2< double > &measures) |
| | Constructs a cylinder with a vector of measures: radius and length.
|
| | ~Cylinder () final |
| double | radius () const |
| double | length () const |
| | 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.
|
| std::unique_ptr< Shape > | Clone () const |
| | Creates a unique copy of this shape.
|
| std::string_view | type_name () const |
| | Returns the (unqualified) type name of this Shape, e.g., "Box".
|
| std::string | to_string () const |
| | Returns a string representation of this shape.
|
| template<typename ReturnType = void, typename Visitor> |
| decltype(auto) | Visit (Visitor &&visitor) const |
| | Calls the given visitor function with *this as the sole argument, but with *this downcast to be the shape's concrete subclass.
|