Esempio n. 1
0
 /// <summary>
 /// Returns whether the specified <paramref name="point"/> is equal to <strong>Null Island</strong>, that is
 /// where both <see cref="IPoint.Latitude"/> and <see cref="IPoint.Longitude"/> are <c>0</c>.
 /// </summary>
 /// <param name="point">The point.</param>
 /// <returns><c>true</c> if both <see cref="IPoint.Latitude"/> and <see cref="IPoint.Longitude"/> are equal to <c>0</c>; otherwise <c>false</c>.</returns>
 /// <see>
 ///     <cref>https://en.wikipedia.org/wiki/Null_Island</cref>
 /// </see>
 public static bool IsNullIsland(this IPoint point)
 {
     return(PointUtils.IsNullIsland(point));
 }
Esempio n. 2
0
 /// <summary>
 /// Calculates the distance in metres between two GPS points on a spheroid.
 /// </summary>
 /// <param name="point">The first point.</param>
 /// <param name="otherPoint">The second point.</param>
 /// <param name="radius">The equatorial radius of the spheroid.</param>
 /// <returns>The distance in metres between the two points.</returns>
 public static double GetDistance(this IPoint point, IPoint otherPoint, double radius)
 {
     return(PointUtils.GetDistance(point, otherPoint, radius));
 }