Factor to getOffsetBounds() and getOffsetPatch().