From d8b164e4727c887979d4da6a4011a444749862fc Mon Sep 17 00:00:00 2001 From: Simponic Date: Thu, 13 Aug 2020 12:07:52 -0600 Subject: Better file structure, stuff is better in general --- include/velocity.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 include/velocity.h (limited to 'include/velocity.h') diff --git a/include/velocity.h b/include/velocity.h new file mode 100644 index 0000000..11c41cb --- /dev/null +++ b/include/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 -- cgit v1.2.3-70-g09d2