Degree WIP

This commit is contained in:
robojumper
2025-09-13 10:11:41 +02:00
parent 532e06a35a
commit fd4adf5f10
6 changed files with 268 additions and 23 deletions
+10 -2
View File
@@ -98,8 +98,12 @@ struct mAng {
return rad * sRadToAng;
}
static f32 ang2deg_c(f32 rad) {
return rad * sAngToDeg;
static f32 ang2deg_c(f32 ang) {
return ang * sAngToDeg;
}
static f32 rad2deg_c(f32 rad) {
return rad * sRadToDeg;
}
static f32 rad2deg(f32 rad) {
@@ -124,6 +128,10 @@ struct mAng {
return rad * (65536.0f / (2.f * M_PI));
}
static f32 deg2rad_c(f32 deg) {
return deg * sDegToRad;
}
s16 mVal;
private: