Beispiel #1
0
 /// <inheritdoc/>
 [Pure] public bool Equals(GeographicCoordinate other)
 {
     // ReSharper disable CompareOfFloatsByEqualityOperator
     return(Latitude == other.Latitude && Longitude == other.Longitude);
     // ReSharper restore CompareOfFloatsByEqualityOperator
 }
Beispiel #2
0
 /// <summary>
 /// Creates a new geographical coordinate with height.
 /// </summary>
 /// <param name="coordinate">The latitude and longitude.</param>
 /// <param name="h">The height above the reference surface.</param>
 public GeographicHeightCoordinate(GeographicCoordinate coordinate, double h)
     : this(coordinate.Latitude, coordinate.Longitude, h)
 {
 }
Beispiel #3
0
        /// <inheritdoc/>
        [Pure] public int CompareTo(GeographicCoordinate other)
        {
            int c = Longitude.CompareTo(other.Longitude);

            return(0 == c?Latitude.CompareTo(other.Latitude) : c);
        }