SOFA API  6a688117
Open source framework for multi-physics simuation
sofa::defaulttype::RigidMass< 2, real > Class Template Reference

#include <RigidTypes.h>

Public Attributes

Real mass
 
Real volume
 
Real inertiaMatrix
 
Real inertiaMassMatrix
 
Real invInertiaMatrix
 
Real invInertiaMassMatrix
 

Public Member Functions

 RigidMass (Real m=1)
 
void operator= (Real m)
 
void operator+= (Real m)
 
void operator-= (Real m)
 
 operator const Real () const
 
 RigidMass (Real m, Real radius)
 Mass for a circle. More...
 
 RigidMass (Real m, Real xwidth, Real ywidth)
 Mass for a rectangle. More...
 
void recalc ()
 
void operator*= (Real fact)
 
void operator/= (Real fact)
 

Friends

std::ostream & operator<< (std::ostream &out, const RigidMass< 2, Real > &m)
 
std::istream & operator>> (std::istream &in, RigidMass< 2, Real > &m)
 

Attribute details

template<class real >
Real sofa::defaulttype::RigidMass< 2, real >::inertiaMassMatrix
template<class real >
Real sofa::defaulttype::RigidMass< 2, real >::inertiaMatrix
template<class real >
Real sofa::defaulttype::RigidMass< 2, real >::invInertiaMassMatrix
template<class real >
Real sofa::defaulttype::RigidMass< 2, real >::invInertiaMatrix
template<class real >
Real sofa::defaulttype::RigidMass< 2, real >::mass
template<class real >
Real sofa::defaulttype::RigidMass< 2, real >::volume

Constructor details

template<class real >
sofa::defaulttype::RigidMass< 2, real >::RigidMass ( Real  m = 1)
inline
template<class real >
sofa::defaulttype::RigidMass< 2, real >::RigidMass ( Real  m,
Real  radius 
)
inline

Mass for a circle.

template<class real >
sofa::defaulttype::RigidMass< 2, real >::RigidMass ( Real  m,
Real  xwidth,
Real  ywidth 
)
inline

Mass for a rectangle.

Function details

template<class real >
sofa::defaulttype::RigidMass< 2, real >::operator const Real ( ) const
inline
template<class real >
void sofa::defaulttype::RigidMass< 2, real >::operator*= ( Real  fact)
inline
template<class real >
void sofa::defaulttype::RigidMass< 2, real >::operator+= ( Real  m)
inline
template<class real >
void sofa::defaulttype::RigidMass< 2, real >::operator-= ( Real  m)
inline
template<class real >
void sofa::defaulttype::RigidMass< 2, real >::operator/= ( Real  fact)
inline
template<class real >
void sofa::defaulttype::RigidMass< 2, real >::operator= ( Real  m)
inline
template<class real >
void sofa::defaulttype::RigidMass< 2, real >::recalc ( )
inline

Related details

template<class real >
std::ostream& operator<< ( std::ostream &  out,
const RigidMass< 2, Real > &  m 
)
friend
template<class real >
std::istream& operator>> ( std::istream &  in,
RigidMass< 2, Real > &  m 
)
friend