mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-08-11 11:02:37 -04:00
add FLT_MAX, FLT_EPSILON, NAN, and HUGE_VALF to MSL_C headers (#316)
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
//
|
||||
|
||||
#include "SSystem/SComponent/c_xyz.h"
|
||||
#include "MSL_C/math.h"
|
||||
#include "MSL_C/float.h"
|
||||
#include "SSystem/SComponent/c_math.h"
|
||||
#include "dol2asm.h"
|
||||
#include "global.h"
|
||||
@@ -144,9 +144,9 @@ bool cXyz::operator!=(const Vec& vec) const {
|
||||
|
||||
/* 802670AC-80267128 007C+00 s=0 e=4 z=7 None .text isZero__4cXyzCFv */
|
||||
bool cXyz::isZero(void) const {
|
||||
return fabsf(this->x) < 32.0f * __float_epsilon[0] &&
|
||||
fabsf(this->y) < 32.0f * __float_epsilon[0] &&
|
||||
fabsf(this->z) < 32.0f * __float_epsilon[0];
|
||||
return fabsf(this->x) < 32.0f * FLT_EPSILON &&
|
||||
fabsf(this->y) < 32.0f * FLT_EPSILON &&
|
||||
fabsf(this->z) < 32.0f * FLT_EPSILON;
|
||||
}
|
||||
|
||||
/* 80267128-80267150 0028+00 s=0 e=81 z=85 None .text atan2sX_Z__4cXyzCFv */
|
||||
|
||||
Reference in New Issue
Block a user