+ 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
+ );
+ }