andrewm@0: /* andrewm@0: * Utilities.h andrewm@0: * andrewm@0: * Created on: Oct 27, 2014 andrewm@0: * Author: parallels andrewm@0: */ andrewm@0: andrewm@0: #ifndef UTILITIES_H_ andrewm@0: #define UTILITIES_H_ andrewm@0: andrewm@0: float map(float x, float in_min, float in_max, float out_min, float out_max); andrewm@0: float constrain(float x, float min_val, float max_val); andrewm@0: andrewm@0: #endif /* UTILITIES_H_ */