From 3010473314505bd948c687ac644b7d87ef03298d Mon Sep 17 00:00:00 2001 From: Simponic Date: Tue, 30 Jun 2020 20:10:29 -0600 Subject: Updated file structure and changed indents to spaces --- src/velocity.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/velocity.h (limited to 'src/velocity.h') 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 -- cgit v1.2.3-70-g09d2