question: public double calcMaxDistance ( final double x , final double y ) { double distanceX = Math . max ( Math . abs ( this . minX - x ) , Math . abs ( this . maxX - x ) ) ; double distanceY = Math . max ( Math . abs ( this . minY - y ) , Math . abs ( this . maxY - y ) ) ; return Math . sqrt ( distanceX * distanceX + distanceY * distanceY ) ; }
target:  Calculates the distance from the given point to the furthest corner of the rectangle