Utility function to clamp a number within a specified range. Ensures that the value does not exceed the given minimum or maximum bounds.
The number to clamp.
The minimum allowable value.
The maximum allowable value.
The clamped value, constrained between min and max.
min
max
Utility function to clamp a number within a specified range. Ensures that the value does not exceed the given minimum or maximum bounds.