/// <inheritdoc/> [Pure] public bool Equals(GeographicCoordinate other) { // ReSharper disable CompareOfFloatsByEqualityOperator return(Latitude == other.Latitude && Longitude == other.Longitude); // ReSharper restore CompareOfFloatsByEqualityOperator }
/// <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) { }
/// <inheritdoc/> [Pure] public int CompareTo(GeographicCoordinate other) { int c = Longitude.CompareTo(other.Longitude); return(0 == c?Latitude.CompareTo(other.Latitude) : c); }