Bayley Wang
/
foc-ed_in_the_bot_compact
robot
MathHelpers/MathHelpers.h@19:a6cf15f89f3d, 2016-11-02 (annotated)
- Committer:
- bwang
- Date:
- Wed Nov 02 12:52:00 2016 +0000
- Revision:
- 19:a6cf15f89f3d
- Child:
- 38:07cb4ae6c1bd
formatting changes
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
bwang | 19:a6cf15f89f3d | 1 | #ifndef __MATH_HELPERS_H |
bwang | 19:a6cf15f89f3d | 2 | #define __MATH_HELPERS_H |
bwang | 19:a6cf15f89f3d | 3 | |
bwang | 19:a6cf15f89f3d | 4 | float constrain(float in, float min, float max); |
bwang | 19:a6cf15f89f3d | 5 | float map(float x, float in_min, float in_max, float out_min, float out_max); |
bwang | 19:a6cf15f89f3d | 6 | float fminf(float, float); |
bwang | 19:a6cf15f89f3d | 7 | float fmaxf(float, float); |
bwang | 19:a6cf15f89f3d | 8 | |
bwang | 19:a6cf15f89f3d | 9 | #endif |