Definition of a capsule.
The capsule can be thought of as a cylinder with spherical caps attached. The capsule's length refers to the length of the cylindrical region, and the radius applies to both the cylinder and spherical caps. A capsule with zero length is a sphere of the given radius. And a capsule with zero radius is a line segment with the given length. The capsule is defined in its canonical frame C, centered on the frame origin and with the length of the capsule parallel with the frame's z-axis.
|
| | Capsule (double radius, double length) |
| | Constructs a capsule with the given radius and length.
|
| | Capsule (const Vector2< double > &measures) |
| | Constructs a capsule with a vector of measures: radius and length.
|
| | ~Capsule () final |
| double | radius () const |
| double | length () const |
| | Capsule (const Capsule &)=default |
| Capsule & | operator= (const Capsule &)=default |
| | Capsule (Capsule &&)=default |
| Capsule & | operator= (Capsule &&)=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.
|