Ensures a given value is within a given boundary.
The number to clamp.
The lower bound.
The upper bound.
The number clamped to the desired range.
Ensures a given value is within a given boundary.