Template Function urcl::clampToUnitRange

Function Documentation

template<typename T, size_t N>
void urcl::clampToUnitRange(std::array<T, N> &values)

Clamps every element of a container to the range [0, 1] in-place.

Template Parameters:
  • T – The type of the elements in the array.

  • N – The size of the array.

Parameters:

values – The array whose elements will be clamped.