distanceToBorder