public bool Equals([CanBeNull] EnvelopeXY other, double tolerance) { if (other == null) { return(false); } return(MathUtils.AreEqual(XMin, other.XMin, tolerance) && MathUtils.AreEqual(YMin, other.YMin, tolerance) && MathUtils.AreEqual(XMax, other.XMax, tolerance) && MathUtils.AreEqual(YMax, other.YMax, tolerance)); }
public string Format([CanBeNull] EnvelopeXY envelope, int?significantDigits = null) { if (envelope == null) { return("<null>"); } return($"XMin: {Format(envelope.XMin, significantDigits)} " + $"YMin: {Format(envelope.YMin, significantDigits)} " + $"XMax: {Format(envelope.XMax, significantDigits)} " + $"YMax: {Format(envelope.YMax, significantDigits)}"); }
protected bool Equals(EnvelopeXY other) { return(XMin.Equals(other.XMin) && YMin.Equals(other.YMin) && XMax.Equals(other.XMax) && YMax.Equals(other.YMax)); }