#include "../geometry/Point.h"
+#include <cassert>
#include <vector>
#include <SDL.h>
));
}
}
+ template<class U>
+ geometry::Point<U> CalculatePosition(std::vector<geometry::Point<Uint8> >::size_type index, U width, U height) const {
+ assert(index >= 0 && index < positions.size());
+ return geometry::Point<U>(
+ positions[index].X() * width / 255,
+ positions[index].Y() * height / 223
+ );
+ }
public:
void AddPosition(const geometry::Point<Uint8> &p) {