Example #1
0
 static float ComputeAngleBetween(LatLng from, LatLng to)
 {
     return(DistanceRadians(ToRadians(from.Latitude), ToRadians(from.Longitude),
                            ToRadians(to.Latitude), ToRadians(to.Longitude)));
 }
Example #2
0
 /// <summary>
 /// Returns the distance between two LatLngs, in meters.
 /// </summary>
 /// <param name="from">The LatLng from which to start.</param>
 /// <param name="to">The LatLng toward which to travel.</param>
 public static float ComputeDistanceBetween(LatLng from, LatLng to)
 {
     return(ComputeAngleBetween(from, to) * EarthRadius);
 }