Zen API
|
T kClamp | ( | const T & | v, |
const T & | min, | ||
const T & | max | ||
) |
Returns a value limited to the specified range.
This method requires C++ 2011; accordingly, it cannot be used in inline functions that may be processed by C compilers or older C++ compilers.
v | Input value. |
min | Minimum output value. |
max | Maximum output value. |