cdm/src/main/java/ucar/unidata/geoloc/LatLonRect.java
public boolean nearlyEquals(LatLonRect other, double maxRelDiff) {
    return this.getLowerLeftPoint() .nearlyEquals(other.getLowerLeftPoint(),  maxRelDiff) &&
           this.getUpperRightPoint().nearlyEquals(other.getUpperRightPoint(), maxRelDiff);
  }
public boolean nearlyEquals(LatLonRect other, double maxRelDiff) {
    return this.getLowerLeftPoint() .nearlyEquals(other.getLowerLeftPoint(),  maxRelDiff) &&
           this.getUpperRightPoint().nearlyEquals(other.getUpperRightPoint(), maxRelDiff);
  }
public boolean nearlyEquals ( LatLonRect other , double maxRelDiff ) { return this . getLowerLeftPoint ( ) . nearlyEquals ( other . getLowerLeftPoint ( ) , maxRelDiff ) && this . getUpperRightPoint ( ) . nearlyEquals ( other . getUpperRightPoint ( ) , maxRelDiff ) ; }
Returns {@code true} if this rectangle is nearly equal to {@code other}. The "near equality" of corners is
determined using {@link LatLonPoint#nearlyEquals(LatLonPoint, double)}, with the specified maxRelDiff.

@param other    the other rectangle to check.
@param maxRelDiff  the maximum {@link Misc#relativeDifference relative difference} that two corners may have.
@return {@code true} if this rectangle is nearly equal to {@code other}.
Returns { @code true } if this rectangle is nearly equal to { @code other } . The near equality of corners is determined using { @link LatLonPoint#nearlyEquals ( LatLonPoint double ) } with the specified maxRelDiff .