/// <inheritdoc/> public bool Equals(IMbr <double> other) { return(!ReferenceEquals(null, other) && XMin == other.XMin && XMax == other.XMax && YMin == other.YMin && YMax == other.YMax); }
/// <summary> /// Constructs a new MBR with the same bounds as the given MBR. /// </summary> /// <param name="mbr">The MBR to copy the bounds from.</param> public Mbr(IMbr <double> mbr) { if (null == mbr) { throw new ArgumentNullException("mbr"); } Contract.EndContractBlock(); X = new Range(mbr.XMin, mbr.XMax); Y = new Range(mbr.YMin, mbr.YMax); }