Removes duplication of Clamp function.
Reviewed By: wraitii Commented By: Stan Differential Revision: https://code.wildfiregames.com/D1763