I want to squeeze down the range of ids that identify individual cells of the map.
Like this as follows:
-10,30 (0,0) 0,30 (1,0) 10,30(2,0)
-10,20 (0,1) 0,20 (1,1) 10,20(2,1)
-10,10 (0,2) 0,10 (1,2) 10,10(2,2)
-10, 0 (0,3) 0, 0 (1,3) 10,0 (2,3)
My purpose of this move is to simplify the astar distance between nodes
Say if the true distance is 10.0 units (-10,30) to (0,30), I just want 1
Hope you get what I mean...
How do I go about doing that in C++?
Thanks
Jack