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/point.h | |
download | tozy-f4e392912a3812b602f787c6db30296cea14962e.tar.gz tozy-f4e392912a3812b602f787c6db30296cea14962e.zip |
Added files
Diffstat (limited to 'src/point.h')
-rw-r--r-- | src/point.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/point.h b/src/point.h new file mode 100644 index 0000000..31fdf3e --- /dev/null +++ b/src/point.h @@ -0,0 +1,20 @@ +#ifndef POINT_H +#define POINT_H + +#include "velocity.h" + +class Point { + private: + float x; + float y; + public: + Point(); + Point(const float x, const float y); + void setX(const float x); + void setY(const float y); + float getX(); + float getY(); + void update(Velocity &vel); +}; + +#endif |