00001 #ifndef _spin_hh_ 00002 #define _spin_hh_ 00003 00004 #include "rotation.hh" 00005 00006 namespace anoid { 00007 namespace plugin { 00008 00013 class Spin: public Rotation { 00014 protected: 00015 double spin[16]; 00016 double oldRotation[16]; 00017 public: 00018 virtual double *getSpin(); 00019 void setRotation(double *r); 00020 void getOldRotation(double *a) { copyMatrix(a, oldRotation); } 00021 void setSpin(double *s); 00022 virtual void init(config::Configuration &c); 00023 virtual void update(); 00024 }; 00025 00026 }; 00027 }; 00028 00029 #endif