3dmap-master/js/utm-converter/src/converter.js
/*
  * UTMXYToLatLon
  *
  * Converts x and y coordinates in the Universal Transverse Mercator
  * projection to a latitude/longitude pair.
  *
  * Inputs:
  * x - The easting of the point, in meters.
  * y - The northing of the point, in meters.
  * zone - The UTM zone in which the point lies.
  * southhemi - True if the point is in the southern hemisphere;
  *               false otherwise.
  *
  * Outputs:
  * latlon - A 2-element array containing the latitude and
  *            longitude of the point, in radians.
  *
  * Returns:
  * The function does not return a value.
  *
  */
UTMXYToLatLon
Converts x and y coordinates in the Universal Transverse Mercator
projection to a latitude/longitude pair.

The easting of the point, in meters.
y - The northing of the point, in meters.
zone - The UTM zone in which the point lies.
southhemi - True if the point is in the southern hemisphere;
false otherwise.

A 2-element array containing the latitude and
longitude of the point, in radians.

The function does not return a value.
UTMXYToLatLon Converts x and y coordinates in the Universal Transverse Mercator projection to a latitude / longitude pair . The easting of the point in meters . y - The northing of the point in meters . zone - The UTM zone in which the point lies . southhemi - True if the point is in the southern hemisphere ; false otherwise . A 2 - element array containing the latitude and longitude of the point in radians . The function does not return a value .
function UTMXYToLatLon (x, y, zone, southhemi, latlon)
  {
      var cmeridian;
      x -= 500000.0;
      x /= UTMScaleFactor;
      if (southhemi)
      y -= 10000000.0;
      y /= UTMScaleFactor;
      cmeridian = UTMCentralMeridian (zone);
      MapXYToLatLon (x, y, cmeridian, latlon);
      return;
  }
function UTMXYToLatLon ( x , y , zone , southhemi , latlon ) { var cmeridian ; x -= 500000.0 ; x /= UTMScaleFactor ; if ( southhemi ) y -= 10000000.0 ; y /= UTMScaleFactor ; cmeridian = UTMCentralMeridian ( zone ) ; MapXYToLatLon ( x , y , cmeridian , latlon ) ; return ; }
UTMXYToLatLon
 Converts x and y coordinates in the Universal Transverse Mercator
 projection to a latitude/longitude pair.
UTMXYToLatLon Converts x and y coordinates in the Universal Transverse Mercator projection to a latitude / longitude pair .
/* If in southern hemisphere, adjust y accordingly. */