Anyone know of a better way to clamp the distance between two vectors ...

Anyone know of a better way to clamp the distance between two vectors ...