asteroids-cs165/include/velocity.h

24 lines
427 B
C
Raw Normal View History

2020-06-30 22:04:55 -04:00
#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