Drake C++ Documentation
Sphere Class Referencefinal

Detailed Description

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
Sphereoperator= (const Sphere &)=default
 Sphere (Sphere &&)=default
Sphereoperator= (Sphere &&)=default
- Public Member Functions inherited from Shape
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< 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

Constructor & Destructor Documentation

◆ Sphere() [1/3]

Sphere ( const Sphere )

◆ Sphere() [2/3]

Sphere ( Sphere &&  )

◆ Sphere() [3/3]

Sphere ( double  radius)

Constructs a sphere with the given radius.

std::exceptionif radius is negative. Note that a zero radius is considered valid.

Member Function Documentation

◆ operator=() [1/2]

Sphere& operator= ( const Sphere )

◆ operator=() [2/2]

Sphere& operator= ( Sphere &&  )

◆ radius()

double radius ( ) const

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