46 #ifndef RBD_rigidBodyInertia_H
47 #define RBD_rigidBodyInertia_H
67 class rigidBodyInertia;
68 Istream&
operator>>(Istream&, rigidBodyInertia&);
69 Ostream&
operator<<(Ostream&,
const rigidBodyInertia&);
127 inline scalar
m()
const;
130 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,...
This class represents the linear and angular inertia of a rigid body by the mass, centre of mass and ...
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 &)
friend Ostream & operator<<(Ostream &, const rigidBodyInertia &)
rigidBodyInertia()
Null constructor, initialises to zero.
symmTensor Io() const
Return the inertia tensor of the rigid-body about the origin.
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.
Templated 3D spatial tensor derived from MatrixSpace used to represent transformations of spatial vec...
A list of keyword definitions, which are a keyword followed by any number of values (e....
Ostream & operator<<(Ostream &, const rigidBody &)
Istream & operator>>(Istream &, rigidBodyInertia &)
SpatialTensor< scalar > spatialTensor
SpatialTensor of scalars.