Chrono::Engine C++ API
Public Member Functions | Public Attributes
chrono::geometry::ChSphere Class Reference

#include <ChCSphere.h>

Inheritance diagram for chrono::geometry::ChSphere:
Inheritance graph
[legend]
Collaboration diagram for chrono::geometry::ChSphere:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ChSphere (Vector &mc, double mrad)
 ChSphere (const ChSphere &source)
void Copy (const ChSphere *source)
ChGeometryDuplicate ()
virtual int GetClassType ()
virtual void GetBoundingBox (double &xmin, double &xmax, double &ymin, double &ymax, double &zmin, double &zmax, ChMatrix33<> *Rot=NULL)
virtual Vector Baricenter ()
virtual void CovarianceMatrix (ChMatrix33<> &C)
virtual int GetManifoldDimension ()
void StreamOUT (ChStreamOutBinary &mstream)
void StreamIN (ChStreamInBinary &mstream)

Public Attributes

Vector center
double rad

Detailed Description

A sphere. Geometric object for collisions and such.


Member Function Documentation

virtual Vector chrono::geometry::ChSphere::Baricenter ( ) [virtual]

Compute center of mass It should be overriden by inherited classes

Reimplemented from chrono::geometry::ChGeometry.

virtual void chrono::geometry::ChSphere::CovarianceMatrix ( ChMatrix33<> &  C) [virtual]

Compute the 3x3 covariance matrix (only the diagonal and upper part) It should be overriden by inherited classes

Reimplemented from chrono::geometry::ChGeometry.

virtual void chrono::geometry::ChSphere::GetBoundingBox ( double &  xmin,
double &  xmax,
double &  ymin,
double &  ymax,
double &  zmin,
double &  zmax,
ChMatrix33<> *  Rot = NULL 
) [virtual]

Compute bounding box. If a matrix Rot is not null, it should compute bounding box along the rotated directions represented by that transformation matrix Rot. It must be overridden by inherited classes.

Reimplemented from chrono::geometry::ChGeometry.

virtual int chrono::geometry::ChSphere::GetClassType ( ) [virtual]

Get the class type as unique numerical ID (faster than using ChronoRTTI mechanism). Each inherited class must return an unique ID.

Reimplemented from chrono::geometry::ChGeometry.