コード例 #1
0
 /// <summary>
 ///     By Geographical distance http://en.wikipedia.org/wiki/Geographical_distance
 /// </summary>
 public static double GeoDistanceTo(this CoordinateModel origin, [NotNull] CoordinateModel destination, [NotNull] UnitOfLengthModel unitOfLength)
 {
     return(DistanceHelper.GetDistanceByGeo(origin, destination, unitOfLength));
 }
コード例 #2
0
 /// <summary>
 ///     Distance to Destination Coordinate in Flat (2D) Map
 /// </summary>
 /// <param name="origin">     </param>
 /// <param name="destination"></param>
 /// <returns> Miles </returns>
 public static double FlatDistanceTo(this CoordinateModel origin, [NotNull] CoordinateModel destination)
 {
     return(DistanceHelper.GetDistanceByFlat(origin, destination));
 }