Functions
utils.h File Reference
This graph shows which files directly or indirectly include this file:

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 ( x,
min,
max 
) [static]

Clamp a value to the range [min, max].

Parameters:
xValue
minMin value of the range [min, max]
maxMax value of the range [min, max]
Returns:
Value clamped to the range [min, max]

Definition at line 36 of file utils.h.



twist_mux
Author(s): Enrique Fernandez , Siegfried-A. Gevatter Pujals
autogenerated on Sat Jun 8 2019 20:13:46