summaryrefslogtreecommitdiff
path: root/src/velocity.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/velocity.h')
-rw-r--r--src/velocity.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/velocity.h b/src/velocity.h
new file mode 100644
index 0000000..11c41cb
--- /dev/null
+++ b/src/velocity.h
@@ -0,0 +1,23 @@
+#ifndef VELOCITY_H
+#define VELOCITY_H
+
+#include "point.h"
+
+class Velocity
+{
+ public:
+ Velocity();
+ Velocity( float dx , float dy );
+ float getDx() const;
+ float getDy() const;
+ void addDy( const float dy );
+ void addDx( const float dx );
+ void setDx( float dx );
+ void setDy( float dy );
+ Point updatePoint ( Point &point );
+ private:
+ float dx;
+ float dy;
+};
+
+#endif