auto clip(const T value, const T min_val, const T max_val) -> T
Returns clipped value of v between a and b where a < b.
Definition template.h:70
auto calculateOffset(T value, T min_val, T max_val, S len, bool clip) -> S
Calculates the offset for a given range and set point.
Definition template.h:26