Go to the source code of this file.
Functions |
template<typename T > |
static T | clamp (T x, T min, T max) |
| Clamp a value to the range [min, max].
|
Function Documentation
template<typename T >
static T clamp |
( |
T |
x, |
|
|
T |
min, |
|
|
T |
max |
|
) |
| [static] |
Clamp a value to the range [min, max].
- Parameters:
-
x | Value |
min | Min value of the range [min, max] |
max | Max value of the range [min, max] |
- Returns:
- Value clamped to the range [min, max]
Definition at line 36 of file utils.h.