| MULTIBODY SIMULATION SOFTWARE - API documentation |
#include <CHcSphere.h>


Public Member Functions | |
| ChSphere (Vector &mc, double mrad) | |
| ChSphere (const ChSphere &source) | |
| void | Copy (const ChSphere *source) |
| ChGeometry * | Duplicate () |
| 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 |
A sphere. Geometric object for collisions and such.
| 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.
CHRONO::ENGINE