Guillaume Chauvon
/
Asserve12
asser1
Diff: math_precalc.cpp
- Revision:
- 2:5764f89a27f6
- Parent:
- 1:0690cf83f060
diff -r 0690cf83f060 -r 5764f89a27f6 math_precalc.cpp --- a/math_precalc.cpp Wed Dec 12 20:03:07 2018 +0000 +++ b/math_precalc.cpp Wed Apr 17 18:55:22 2019 +0000 @@ -77,3 +77,20 @@ return angle; } +int signe(float entier){ + if(entier >=0){ + return 1; + } + if(entier <0){ + return -1; + } + return 0; +} +float min(float f1, float f2){ + if (f1-f2>0){ + return f2; + } + else{ + return f1; + } +} \ No newline at end of file