#include <rdBody.h>
Public Member Functions | |
| rdBody (double aM=1.0, double *aI=NULL) | |
| Default constructor. | |
| virtual | ~rdBody () |
| Destructor. | |
| void | setMass (double aM) |
| Set the mass. | |
| double | getMass () |
| Get the mass. | |
| void | setInertia (double *aI) |
| Set the inertia scalars. | |
| void | setInertia (double I1, double I2, double I3) |
| Set the inertia scalars. | |
| void | setInertia (double I1, double I2, double I3, double I12, double I23, double I31) |
| Set the inertia scalars. | |
| void | getInertia (double aI[6]) |
| Get the inertia scalars. | |
| void | getInertia (double aI[3][3]) |
| Get the inertia scalars. | |
Private Attributes | |
| double | _M |
| double | _I [6] |
|
|
Get the inertia scalars. The full scalar inertia matrix is contructed. |
|
|
Get the inertia scalars. The argument aI is filled with the values aI1, aI2, aI3, aI12, aI23, aI31. |
|
||||||||||||||||
|
Set the inertia scalars. aI1, aI2, aI3 correspond to the moments of inertia. It is assumed that the products of inertia are 0.0. |
|
|
Set the inertia scalars. The argument aI is assumed to point to a array of values which has as its first six values I1, I2, I3, I12, I23, I31. If aI is NULL, then the inertia scalars are set to represent the inertia matrix for a sphere of uniform density of the same mass as the body |
|
|
Set the mass. The mass must be greater than or equal to zero. |
1.3