function clamp( value, min, max ) {

	return Math.max( min, Math.min( max, value ) );

}
Clamps the given value between min and max.

@param {number} value - The value to clamp.
@param {number} min - The min value.
@param {number} max - The max value.
@return {number} The clamped value.