public boolean equalsWithEpsilon(Rectangle that,float eps){
  float dx=Math.abs(x - that.x);
  float dy=Math.abs(y - that.y);
  float dw=Math.abs(width - that.width);
  float dh=Math.abs(height - that.height);
  return dx < eps && dy < eps && dw < eps && dh < eps;
}

public boolean equalsWithEpsilon ( Rectangle that , float eps ) { float dx = Math . abs ( x - that . x ) ; float dy = Math . abs ( y - that . y ) ; float dw = Math . abs ( width - that . width ) ; float dh = Math . abs ( height - that . height ) ; return dx < eps && dy < eps && dw < eps && dh < eps ; }
compares instance of this rectangle with given deviation .
