This commit is contained in:
lepelog
2021-11-25 23:11:51 +01:00
parent 475d94201c
commit 5bf31ecd8d
17 changed files with 203 additions and 1558 deletions
+1 -1
View File
@@ -7,7 +7,7 @@
#include "msl_c/math.h"
inline bool cLib_IsZero(f32 f) {
return fabsf(f) < 8e-11;
return fabsf(f) < 8e-11f;
}
void cLib_memCpy(void* dst, const void* src, unsigned long size);
+2
View File
@@ -121,6 +121,8 @@ struct cXyz : Vec {
}
f32 abs() const { return sqrtf(this->abs2()); }
f32 abs(const Vec& other) const { return sqrtf(this->abs2(other)); }
f32 absXZ() const { return sqrtf(this->abs2XZ()); }
f32 absXZ(const Vec& other) const { return sqrtf(this->abs2XZ(other)); }
f32 getMagXZ() const { return cXyz(this->x, 0, this->z).getSquareMag(); }
};