#include "point.h" #include "velocity.h" Point :: Point() { setX(0.0f); setY(0.0f); } Point :: Point (const float x, const float y) { setX(x); setY(y); } void Point :: setX(const float x) { this->x = x; } void Point :: setY(const float y) { this->y = y; } float Point :: getX() { return this->x; } float Point :: getY() { return this->y; } void Point :: update(Velocity &vel) { this->x += vel.getDx(); this->y += vel.getDy(); }