Template Function tap::algorithms::limitVal

Function Documentation

template<typename T>
inline T tap::algorithms::limitVal(T val, T min, T max)

Limits the value between some min an max (between [min, max]).

Template Parameters:

T – the type you would like to limit.

Parameters:
  • val[in] the value to limit.

  • min[in] the min that val will be limited to.

  • max[in] the max that val will be limited to.

Returns:

the limited value.