title: Converting game's x,y coordinates to Google Earth lat/long
body: <p>I'm trying to convert coordinates from a game's  Earth map to values in a Google Earth's kml file. The Earth in the game is represented this way:</p>
  
  <p>The map is flat with width of 43,200,000m (X goes from -21,600,000 to 21,600,000) and height of 21,600,000m (Y goes from -10,800,000 to 10,800,000)</p>
  
  <p>The distance between degrees is always the same: 120,000 m in length.</p>
  
  <p>How do I convert the X , Y coordinates on this map to decimal latitude/longitude in Google Earth's format?</p>
  
  <p>I've tried to use these formulas:</p>
  
  <pre><code> LON = (360/map width) * X   
   LAT = (180/map height) * Y
  </code></pre>
  
  <p>but the coordinates are always off by a few hundred meters. There must be something I'm missing.</p>