Definition of sphere.
It is centered in its canonical frame with the given radius.
#include <drake/geometry/shape_specification.h>
Public Member Functions | |
Sphere (double radius) | |
Constructs a sphere with the given radius . More... | |
double | radius () const |
Implements CopyConstructible, CopyAssignable, MoveConstructible, MoveAssignable | |
Sphere (const Sphere &)=default | |
Sphere & | operator= (const Sphere &)=default |
Sphere (Sphere &&)=default | |
Sphere & | operator= (Sphere &&)=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 |
|
explicit |
Constructs a sphere with the given radius
.
std::exception | if radius is negative. Note that a zero radius is considered valid. |
double radius | ( | ) | const |