1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#ifndef ACCELERATION_H #define ACCELERATION_H class Acceleration { private: float d2x; float d2y; public: Acceleration(); Acceleration(const float d2x, const float d2y); void setD2x(const float d2x); void setD2y(const float d2y); float getD2x(); float getD2y(); void addAcceleration(Acceleration &acc); }; #endif