Exemple #1
0
        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));
        }
Exemple #2
0
        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)}");
        }
Exemple #3
0
 protected bool Equals(EnvelopeXY other)
 {
     return(XMin.Equals(other.XMin) && YMin.Equals(other.YMin) && XMax.Equals(other.XMax) &&
            YMax.Equals(other.YMax));
 }