int (Rectangle aRectangle, Point aPoint, int aEpsilon) { final int ERROR_CODE = Integer.MIN_VALUE; if (pointOnBound(getTopOf(aRectangle), aPoint, aEpsilon)) { return TOP; } else if (pointOnBound(getBottomOf(aRectangle), aPoint, aEpsilon)) { return BOTTOM; } else if (pointOnBound(getLeftOf(aRectangle), aPoint, aEpsilon)) { return LEFT; } else if (pointOnBound(getRightOf(aRectangle), aPoint, aEpsilon)) { return RIGHT; } else { return ERROR_CODE; } }