Vamos_Geometry::Inertia_Tensor Class Reference

#include <Inertia_Tensor.h>

Inheritance diagram for Vamos_Geometry::Inertia_Tensor:

Inheritance graph
[legend]
Collaboration diagram for Vamos_Geometry::Inertia_Tensor:

Collaboration graph
[legend]
List of all members.

Public Member Functions

void add (double mass, const Three_Vector &position)
void zero ()
void update ()
double inertia (const Three_Vector &position, const Three_Vector &force_direction) const
double inertia (const Three_Vector &torque) const
const Three_Matrixinverse () const

Private Attributes

double m_mass
Three_Matrix m_inverse

Detailed Description

Definition at line 30 of file Inertia_Tensor.h.


Member Function Documentation

void Vamos_Geometry::Inertia_Tensor::add double  mass,
const Three_Vector position
 

Definition at line 23 of file Inertia_Tensor.cc.

References m_mass.

double Vamos_Geometry::Inertia_Tensor::inertia const Three_Vector torque  )  const
 

Definition at line 97 of file Inertia_Tensor.cc.

References Vamos_Geometry::Three_Vector::unit().

double Vamos_Geometry::Inertia_Tensor::inertia const Three_Vector position,
const Three_Vector force_direction
const
 

Definition at line 81 of file Inertia_Tensor.cc.

References Vamos_Geometry::Three_Vector::cross(), m_inverse, m_mass, Vamos_Geometry::Three_Vector::project(), and Vamos_Geometry::Three_Vector::unit().

Referenced by Vamos_Body::Contact_Point::contact(), and Vamos_Body::Rigid_Body::single_point_contact().

const Three_Matrix& Vamos_Geometry::Inertia_Tensor::inverse  )  const [inline]
 

Definition at line 63 of file Inertia_Tensor.h.

References m_inverse.

Referenced by Vamos_Body::Rigid_Body::single_point_contact().

void Vamos_Geometry::Inertia_Tensor::update  ) 
 

Definition at line 58 of file Inertia_Tensor.cc.

References Vamos_Geometry::Three_Matrix::invert(), and m_inverse.

void Vamos_Geometry::Inertia_Tensor::zero  ) 
 

Reimplemented from Vamos_Geometry::Three_Matrix.

Definition at line 48 of file Inertia_Tensor.cc.

References m_mass, and Vamos_Geometry::Three_Matrix::zero().


Member Data Documentation

Three_Matrix Vamos_Geometry::Inertia_Tensor::m_inverse [private]
 

Definition at line 35 of file Inertia_Tensor.h.

Referenced by inertia(), inverse(), and update().

double Vamos_Geometry::Inertia_Tensor::m_mass [private]
 

Definition at line 33 of file Inertia_Tensor.h.

Referenced by add(), inertia(), and zero().


The documentation for this class was generated from the following files:
Generated on Thu Oct 19 04:13:54 2006 by  doxygen 1.4.6