SOFA API  1a4bb3e7
Open source framework for multi-physics simuation
sofa::defaulttype::SolidTypes< R >::RigidInertia Class Reference

#include <SolidTypes.h>

Public Attributes

Real m
 mass More...
 
Vec h
 position of the mass center in the local reference frame More...
 
Mat I
 

Public Member Functions

 RigidInertia ()
 Inertia matrix around the mass center. More...
 
 RigidInertia (Real m, const Vec &h, const Mat &I)
 
SpatialVector operator* (const SpatialVector &v) const
 
RigidInertia operator* (const Transform &t) const
 

Friends

std::ostream & operator<< (std::ostream &out, const RigidInertia &r)
 

Attribute details

◆ h

template<class R = float>
Vec sofa::defaulttype::SolidTypes< R >::RigidInertia::h

position of the mass center in the local reference frame

◆ I

template<class R = float>
Mat sofa::defaulttype::SolidTypes< R >::RigidInertia::I

◆ m

template<class R = float>
Real sofa::defaulttype::SolidTypes< R >::RigidInertia::m

mass

Constructor details

◆ RigidInertia() [1/2]

template<class R >
sofa::defaulttype::SolidTypes< R >::RigidInertia::RigidInertia

Inertia matrix around the mass center.

◆ RigidInertia() [2/2]

template<class R >
sofa::defaulttype::SolidTypes< R >::RigidInertia::RigidInertia ( Real  m,
const Vec h,
const Mat I 
)

Function details

◆ operator*() [1/2]

template<class R >
SolidTypes< R >::SpatialVector sofa::defaulttype::SolidTypes< R >::RigidInertia::operator* ( const SpatialVector v) const

◆ operator*() [2/2]

template<class R >
SolidTypes< R >::RigidInertia sofa::defaulttype::SolidTypes< R >::RigidInertia::operator* ( const Transform t) const

Related details

◆ operator<<

template<class R = float>
std::ostream& operator<< ( std::ostream &  out,
const RigidInertia r 
)
friend