summaryrefslogtreecommitdiff
path: root/include/velocity.h
blob: 11c41cb92aef889a2d7214dd9ce43dfb95dd78c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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