Clamps a value to the given range.
The value to clamp.
The lower bound.
The upper bound.
The clamped value.
Clamps a value to the given range.