diff options
author | Simponic <loganthebean222@gmail.com> | 2020-06-30 20:04:55 -0600 |
---|---|---|
committer | Simponic <loganthebean222@gmail.com> | 2020-06-30 20:04:55 -0600 |
commit | 7a60ab9f178dd813c876fcf8e25c947f9a9a5e06 (patch) | |
tree | 31ec5147b0e6a01b85499cf06a701af750fb83f7 /velocity.h | |
download | asteroids-cs165-7a60ab9f178dd813c876fcf8e25c947f9a9a5e06.tar.gz asteroids-cs165-7a60ab9f178dd813c876fcf8e25c947f9a9a5e06.zip |
Updated indentation
Diffstat (limited to 'velocity.h')
-rw-r--r-- | velocity.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/velocity.h b/velocity.h new file mode 100644 index 0000000..11c41cb --- /dev/null +++ b/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 |