Drake
Sphere Class Referencefinal

#include <drake/attic/multibody/shapes/geometry.h>

Public Member Functions

 Sphere (double radius)
 
virtual ~Sphere ()
 
virtual Sphereclone () const
 
virtual void getPoints (Eigen::Matrix3Xd &points) const
 
virtual void getBoundingBoxPoints (Eigen::Matrix3Xd &points) const
 
virtual void getTerrainContactPoints (Eigen::Matrix3Xd &points) const
 
- Public Member Functions inherited from Geometry
 Geometry ()
 
virtual ~Geometry ()
 
Shape getShape () const
 
virtual bool hasFaces () const
 
virtual void getFaces (TrianglesVector *faces) const
 Returns the faces making up this geometry as a vector of triangles. More...
 

Public Attributes

double radius
 

Static Public Attributes

static const int NUM_POINTS = 1
 

Friends

std::ostream & operator<< (std::ostream &, const Sphere &)
 A toString method for this class. More...
 

Additional Inherited Members

- Protected Member Functions inherited from Geometry
 Geometry (Shape shape)
 
 Geometry (const Geometry &)=default
 
void operator= (const Geometry &)=delete
 
void getBoundingBoxPoints (double x_half_width, double y_half_width, double z_half_width, Eigen::Matrix3Xd &points) const
 
- Protected Attributes inherited from Geometry
Shape shape
 
- Static Protected Attributes inherited from Geometry
static const int NUM_BBOX_POINTS = 8
 

Constructor & Destructor Documentation

◆ Sphere()

Sphere ( double  radius)
explicit

◆ ~Sphere()

virtual ~Sphere ( )
inlinevirtual

Member Function Documentation

◆ clone()

Sphere * clone ( ) const
virtual

Reimplemented from Geometry.

◆ getBoundingBoxPoints()

void getBoundingBoxPoints ( Eigen::Matrix3Xd &  points) const
virtual

Reimplemented from Geometry.

◆ getPoints()

void getPoints ( Eigen::Matrix3Xd &  points) const
virtual

Reimplemented from Geometry.

◆ getTerrainContactPoints()

void getTerrainContactPoints ( Eigen::Matrix3Xd &  points) const
virtual

Reimplemented from Geometry.

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  out,
const Sphere ss 
)
friend

A toString method for this class.

Member Data Documentation

◆ NUM_POINTS

const int NUM_POINTS = 1
static

◆ radius

double radius

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