VoltAir
|
Namespace containing frequently used static utility functions for the GameInput library. More...
Functions | |
template<typename T > | |
const T & | clamp (const T &a, const T &min, const T &max) |
Returns the value a clamped between min and max . More... | |
Namespace containing frequently used static utility functions for the GameInput library.
const T& InputUtil::clamp | ( | const T & | a, |
const T & | min, | ||
const T & | max | ||
) |
Returns the value a
clamped between min
and max
.
a | Value to clamp |
min | Minimum value to return |
max | Maximum value to return |