This class represents the linear and angular inertia of a rigid body by the mass, centre of mass and ...
symmTensor Ioc() const
Return the difference between the inertia tensor of the rigid-body.
rigidBodyInertia()
Null constructor, initializes to zero.
void operator+=(const rigidBodyInertia &)
scalar m() const
Return the mass of the rigid-body.
friend Istream & operator>>(Istream &, rigidBodyInertia &)
symmTensor Icc(const vector &c) const
Return the difference between the inertia tensor of the rigid-body.
const symmTensor & Ic() const
Return the inertia tensor of the rigid-body about the centre of mass.
friend Ostream & operator<<(Ostream &, const rigidBodyInertia &)
scalar kineticEnergy(const spatialVector &v)
Return the kinetic energy of the body with the given velocity.
symmTensor Io() const
Return the inertia tensor of the rigid-body about the origin.
const vector & c() const
Return the centre of mass of the rigid-body.