Yes, you usually need more than just one type of coordinates:
-overview map
-regular map
-OpenGL coordinates
-...
But you should only define the coordinates once though. I would suggest
you have some sort of master coordinates, from which you derive the other
coordinates. Use "meter" or something, so you know what the meaning of
your master coordinates are. E.g.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
| public class Coordinates { private float x; private float y; private float z; +setter/getters for x, y and z +getter for overview map: public Point getOverviewCoordinates() { Point point = new Point(); point.setX(x * "some scale factor"); point.setY(y * "some scale factor"); return point } +getters for other maps } |