mirror of
https://github.com/zeldaret/tp
synced 2026-08-05 01:30:02 -04:00
c_lib OK
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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(); }
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user