Example #1
0
        private static double DistanceToLongitudeDegrees(Position position, Distance distance)
        {
            double latCircumference = LatitudeCircumferenceKm(position);

            return(distance.Kilometers / latCircumference * 360);
        }
Example #2
0
 public static MapSpan FromCenterAndRadius(Position center, Distance radius)
 {
     return(new MapSpan(center, 2 * DistanceToLatitudeDegrees(radius), 2 * DistanceToLongitudeDegrees(center, radius)));
 }
Example #3
0
 private static double DistanceToLatitudeDegrees(Distance distance)
 {
     return(distance.Kilometers / EarthCircumferenceKm * 360);
 }