|
inlinestaticconstexpr |
Clamps a value between minimum and maximum bounds.
Ensures a value stays within specified bounds using the formula: result = min(max(value, min), max)
Clamping behavior:
Common uses:
| value | Value to be clamped |
| min | Minimum allowed value |
| max | Maximum allowed value |