@param value The value to clamp.
@param lowerBound The lower bound of the clamping range.
@param upperBound The upper bound of the clamping range.
@returns
- @a value if @a value lies between @a lowerBound and @a upperBound.
- @a lowerBound if @a value is less than @a lowerBound.
- @a upperBound if @a value is greater than @a upperBound.
Clamps a value onto a clamping range.
@param value The value to clamp. @param lowerBound The lower bound of the clamping range. @param upperBound The upper bound of the clamping range.
@returns - @a value if @a value lies between @a lowerBound and @a upperBound. - @a lowerBound if @a value is less than @a lowerBound. - @a upperBound if @a value is greater than @a upperBound.
This function does not modify any parameters.