13 #ifndef __ROT_DAMPING_H
14 #define __ROT_DAMPING_H
17 #include "Model/DampingIGP.h"
18 #include "Foundation/vec3.h"
19 #include "Foundation/quintuple.h"
44 typedef double (
CRotDamping::* ScalarFieldFunction)()
const;
45 typedef pair<bool,double> (
CRotDamping::* CheckedScalarFieldFunction)()
const;
55 inline void setLimit(
double limit){
s_limit2=limit*limit;};
57 void setTimeStepSize(
double dt);
58 virtual bool hasTag(
int,
int)
const;
59 virtual Vec3 getPosFirst()
const {
return m_p->getPos();};
60 virtual Vec3 getPosSecond()
const {
return Vec3(0.0,0.0,0.0);};
61 virtual Vec3 getPos()
const {
return m_p->getPos();};
75 static void zeroFlops(){s_flops=0;};
76 static int Flops(){
return s_flops;};
79 Vec3 getForce()
const;
82 #include "Model/RotDamping.hpp"
84 #endif //__ROT_DAMPING_H