title: Converting coordinates to WGS84
body: <p>I have the following function which plots a Circle given the centroid, but I want the coordinates to be In WGS84.</p>
  
  <pre><code>var coords = new List&lt;Tuple&lt;double, double&gt;&gt;();
  const double EARTH_RADIUS_NM = 3437.670013352;
  var lat = (latIn * Math.PI) / 180;
  var lon = (lonIn * Math.PI) / 180;
  double d = radiusIn / EARTH_RADIUS_NM;
  for (int x = 0; x &lt;= 360; x++)
  {
      double brng = (x * Math.PI) / 180; 
      var latRadians = Math.Asin(Math.Sin(lat) * Math.Cos(d) + Math.Cos(lat) * Math.Sin(d) * Math.Cos(brng));
      var lngRadians = lon + Math.Atan2(Math.Sin(brng) * Math.Sin(d) * Math.Cos(lat), Math.Cos(d) - Math.Sin(lat) * Math.Sin(latRadians));
  
      coords.Add(new Tuple&lt;double, double&gt;(latRadians, lngRadians));
  }
  </code></pre>