/// <inheritdoc />
 public bool Equals(GeoBoundingBox other)
 {
     return(West.Equals(other.West) &&
            South.Equals(other.South) &&
            East.Equals(other.East) &&
            North.Equals(other.North) &&
            Nullable.Equals(MinAltitude, other.MinAltitude) &&
            Nullable.Equals(MaxAltitude, other.MaxAltitude));
 }
Exemple #2
0
 public bool Equals(Bbox other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(North.Equals(other.North) &&
            South.Equals(other.South) &&
            East.Equals(other.East) &&
            West.Equals(other.West));
 }
 /// <summary>
 /// Indicates whether the current object is equal to another object of the same type.
 /// </summary>
 /// <returns>
 /// true if the current object is equal to the <paramref name="other"/> parameter; otherwise, false.
 /// </returns>
 /// <param name="other">
 /// An object to compare with this object.
 /// </param>
 public bool Equals(LatLngBounds other)
 {
     return(other != null && East.Equals(other.East) && North.Equals(other.North) && South.Equals(other.South) && West.Equals(other.West));
 }