float bound(float val, float min, float max)
Bound a value in a range [min, max].
Definition: utils.c:27
float map(float val, float input_lower_limit, float input_higher_limit, float output_lower_limit, float output_higher_limit)
Maps a value in range [input_lower_limit, input_higher_limit] to [output_lower_limit,...
Definition: utils.c:36