I believe you could index your regions basing on their starting and ending coordinates and when you get the point coordinates, well, just look for something within said boundaries. If all regions are the same size, you could simply index them numerically by a given multiplier and then just divide the pointcoordinates between said multipliers and you get the given region. No galaxy, but quick mockup, assuming your regions are 8.0,8.0 sized.
Region[0][0] = {origin(0.0, 0.0), end(8.0,8.0)}
Region[0][1] = {origin(0.0, 8.0), end(8.0,16.0)}
....
Region[1][0] = {origin(8.0, 0.0), end(16.0,8.0)}
Region[1][1] = {origin(8.0, 8.0), end(16.0,16.0)}
...
all of these could be filled via a loop or smth
Then if you have a point with coordinates (4.5,11.2) you just divide 4.5/8=0.5625, 11.2/8=1.4, aka [0][1]
I believe you could index your regions basing on their starting and ending coordinates and when you get the point coordinates, well, just look for something within said boundaries. If all regions are the same size, you could simply index them numerically by a given multiplier and then just divide the pointcoordinates between said multipliers and you get the given region. No galaxy, but quick mockup, assuming your regions are 8.0,8.0 sized.
Region[0][0] = {origin(0.0, 0.0), end(8.0,8.0)} Region[0][1] = {origin(0.0, 8.0), end(8.0,16.0)} .... Region[1][0] = {origin(8.0, 0.0), end(16.0,8.0)} Region[1][1] = {origin(8.0, 8.0), end(16.0,16.0)} ... all of these could be filled via a loop or smth
Then if you have a point with coordinates (4.5,11.2) you just divide 4.5/8=0.5625, 11.2/8=1.4, aka [0][1]
Go play Antioch Chronicles Remastered!
Also, coming soon, Antioch Episode 3: Thoughts in Chaos!
Dont like mapster's ugly white? Try Mapster's Classic Skin!