public bool Equals(Extent other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(Equals(SpatialReference, other.SpatialReference) && XMin.Equals(other.XMin) && XMax.Equals(other.XMax) && YMin.Equals(other.YMin) && YMax.Equals(other.YMax)); }
protected bool Equals(EnvelopeXY other) { return(XMin.Equals(other.XMin) && YMin.Equals(other.YMin) && XMax.Equals(other.XMax) && YMax.Equals(other.YMax)); }
public bool Equals(BoundingBox2D other) => other != null && (double.IsNaN(XMin) && double.IsNaN(other.XMin) || XMin.Equals(other.XMin)) && (double.IsNaN(YMin) && double.IsNaN(other.YMin) || YMin.Equals(other.YMin)) && (double.IsNaN(XMax) && double.IsNaN(other.XMax) || XMax.Equals(other.XMax)) && (double.IsNaN(YMax) && double.IsNaN(other.YMax) || YMax.Equals(other.YMax));