Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   Related Pages  

rdBody Class Reference

A class which represents the physical parameters of a massive body. More...

#include <rdBody.h>

List of all members.

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]


Detailed Description

A class which represents the physical parameters of a massive body.


Member Function Documentation

void rdBody::getInertia double  aI[3][3]  ) 
 

Get the inertia scalars.

The full scalar inertia matrix is contructed.

void rdBody::getInertia double  aI[6]  ) 
 

Get the inertia scalars.

The argument aI is filled with the values aI1, aI2, aI3, aI12, aI23, aI31.

void rdBody::setInertia double  I1,
double  I2,
double  I3
 

Set the inertia scalars.

aI1, aI2, aI3 correspond to the moments of inertia. It is assumed that the products of inertia are 0.0.

void rdBody::setInertia double *  aI  ) 
 

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

void rdBody::setMass double  aM  ) 
 

Set the mass.

The mass must be greater than or equal to zero.


The documentation for this class was generated from the following files:
Generated on Wed Aug 20 02:17:09 2003 for Simulation Software by doxygen1.3