00001 #ifndef DAMP_H 00002 #define DAMP_H 00003 00004 #include "Force.h" 00005 00006 namespace Elve { 00007 00008 class Damp : public Force 00009 { 00010 public: 00011 Damp(qreal b); 00012 void setB(qreal b); 00013 QVector2D force(const Point &m) const override; 00014 private: 00015 qreal mB; 00016 }; 00017 00018 } 00019 #endif // DAMP_H