diff options
author | Simponic <loganthebean222@gmail.com> | 2020-11-06 11:48:27 -0700 |
---|---|---|
committer | Simponic <loganthebean222@gmail.com> | 2020-11-06 11:48:27 -0700 |
commit | f4e392912a3812b602f787c6db30296cea14962e (patch) | |
tree | 0207b67ab6bb4bca46f56b2fa51d23b5433bb2f4 /src/acceleration.h | |
download | tozy-f4e392912a3812b602f787c6db30296cea14962e.tar.gz tozy-f4e392912a3812b602f787c6db30296cea14962e.zip |
Added files
Diffstat (limited to 'src/acceleration.h')
-rw-r--r-- | src/acceleration.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/acceleration.h b/src/acceleration.h new file mode 100644 index 0000000..0186a19 --- /dev/null +++ b/src/acceleration.h @@ -0,0 +1,18 @@ +#ifndef ACCELERATION_H +#define ACCELERATION_H + +class Acceleration { + private: + float d2x; + float d2y; + public: + Acceleration(); + Acceleration(const float d2x, const float d2y); + void setD2x(const float d2x); + void setD2y(const float d2y); + float getD2x(); + float getD2y(); + void addAcceleration(Acceleration &acc); +}; + +#endif |