# Thread: Converting between coordinate systems

1. ## Converting between coordinate systems

Hello,

Imagine you life in a world that is a grid of 25 squares ("cells"). Lets say each cell is 630x630, making the world size 3150x3150 units. The "GPS" of the world is based on the center of the world, and the coordinates range from -1575,-1575 to 1575,1575. Each "cell" is considered to be a city. Much like real-world cities, addresses for businesses, homes, etc, use a local address system rather than the global address. The cell's coordinate system is based on the center of the cell, so the coordinates are -315,-315 to 315,315.

How can I go about converting the global coordinates to the local system? As an example, suppose I gave you the coordinates 602, -7. I know how to get the proper cell for those coordinates... but I can't seem to figure out how to convert it to the localized system.

2. ## Re: Converting between coordinate systems

This might be more than you want, but at the end there is the desired formula.