48#ifndef RBD_rigidBodyInertia_H
49#define RBD_rigidBodyInertia_H
124 inline scalar
m()
const;
127 inline const vector&
c()
const;
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
symmTensor Icc(const vector &c) const
Return the difference between the inertia tensor of the rigid-body.
scalar kineticEnergy(const spatialVector &v)
Return the kinetic energy of the body with the given velocity.
const vector & c() const
Return the centre of mass of the rigid-body.
void operator+=(const rigidBodyInertia &)
rigidBodyInertia()
Null constructor, initializes to zero.
symmTensor Io() const
Return the inertia tensor of the rigid-body about the origin.
friend Ostream & operator<<(Ostream &, const rigidBodyInertia &)
symmTensor Ioc() const
Return the difference between the inertia tensor of the rigid-body.
friend Istream & operator>>(Istream &, rigidBodyInertia &)
scalar m() const
Return the mass of the rigid-body.
const symmTensor & Ic() const
Return the inertia tensor of the rigid-body about the centre of mass.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
This class represents the linear and angular inertia of a rigid body by the mass, centre of mass and ...
Ostream & operator<<(Ostream &, const rigidBody &)
Istream & operator>>(Istream &, rigidBodyInertia &)
SpatialVector< scalar > spatialVector
SpatialVector of scalars.
SpatialTensor< scalar > spatialTensor
SpatialTensor of scalars.
SymmTensor< scalar > symmTensor
SymmTensor of scalars, i.e. SymmTensor<scalar>.