Mercurial > hg > beaglert
annotate include/Utilities.h @ 0:8a575ba3ab52
Initial commit.
author | andrewm |
---|---|
date | Fri, 31 Oct 2014 19:10:17 +0100 |
parents | |
children | 09f03ac40fcc |
rev | line source |
---|---|
andrewm@0 | 1 /* |
andrewm@0 | 2 * Utilities.h |
andrewm@0 | 3 * |
andrewm@0 | 4 * Created on: Oct 27, 2014 |
andrewm@0 | 5 * Author: parallels |
andrewm@0 | 6 */ |
andrewm@0 | 7 |
andrewm@0 | 8 #ifndef UTILITIES_H_ |
andrewm@0 | 9 #define UTILITIES_H_ |
andrewm@0 | 10 |
andrewm@0 | 11 float map(float x, float in_min, float in_max, float out_min, float out_max); |
andrewm@0 | 12 float constrain(float x, float min_val, float max_val); |
andrewm@0 | 13 |
andrewm@0 | 14 #endif /* UTILITIES_H_ */ |