summaryrefslogtreecommitdiff
path: root/src/velocity.h
diff options
context:
space:
mode:
authorSimponic <loganthebean222@gmail.com>2020-11-06 11:48:27 -0700
committerSimponic <loganthebean222@gmail.com>2020-11-06 11:48:27 -0700
commitf4e392912a3812b602f787c6db30296cea14962e (patch)
tree0207b67ab6bb4bca46f56b2fa51d23b5433bb2f4 /src/velocity.h
downloadtozy-f4e392912a3812b602f787c6db30296cea14962e.tar.gz
tozy-f4e392912a3812b602f787c6db30296cea14962e.zip
Added files
Diffstat (limited to 'src/velocity.h')
-rw-r--r--src/velocity.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/velocity.h b/src/velocity.h
new file mode 100644
index 0000000..3c48949
--- /dev/null
+++ b/src/velocity.h
@@ -0,0 +1,21 @@
+#ifndef VELOCITY_H
+#define VELOCITY_H
+
+#include "acceleration.h"
+
+class Velocity {
+ private:
+ float dx;
+ float dy;
+ public:
+ Velocity();
+ Velocity(const float dx, const float dy);
+ void setDx(const float dx);
+ void setDy(const float dy);
+ float getDx();
+ float getDy();
+ void addVelocity(Velocity &vel);
+ void update(Acceleration &acc);
+};
+
+#endif