InBetween and Clamp
Bunch of extension methods from StackOverflow thread.