jstudio-math OK

This commit is contained in:
LagoLunatic
2024-03-03 19:47:15 -05:00
parent 95502c5f29
commit 012ba34af7
2 changed files with 7 additions and 8 deletions
+1 -1
View File
@@ -601,7 +601,7 @@ config.libs = [
[
Object(NonMatching, "JSystem/JStudio/JStudio/jstudio-control.cpp"),
Object(NonMatching, "JSystem/JStudio/JStudio/jstudio-data.cpp"),
Object(NonMatching, "JSystem/JStudio/JStudio/jstudio-math.cpp"),
Object(Matching, "JSystem/JStudio/JStudio/jstudio-math.cpp"),
Object(NonMatching, "JSystem/JStudio/JStudio/jstudio-object.cpp"),
Object(NonMatching, "JSystem/JStudio/JStudio/functionvalue.cpp"),
Object(NonMatching, "JSystem/JStudio/JStudio/fvb.cpp"),
+6 -7
View File
@@ -11,13 +11,12 @@ namespace math {
/* 8026E610-8026E778 .text getRotation_xyz__Q27JStudio4mathFPA4_ffff */
void getRotation_xyz(MtxP param_1, f32 x, f32 y, f32 z) {
/* Nonmatching - regalloc */
f32 cosx = cos(DEG_TO_RAD(x));
f32 sinx = sin(DEG_TO_RAD(x));
f32 cosy = cos(DEG_TO_RAD(y));
f32 siny = sin(DEG_TO_RAD(y));
f32 cosz = cos(DEG_TO_RAD(z));
f32 sinz = sin(DEG_TO_RAD(z));
f32 cosx = i_cosf(DEG_TO_RAD(x));
f32 sinx = i_sinf(DEG_TO_RAD(x));
f32 cosy = i_cosf(DEG_TO_RAD(y));
f32 siny = i_sinf(DEG_TO_RAD(y));
f32 cosz = i_cosf(DEG_TO_RAD(z));
f32 sinz = i_sinf(DEG_TO_RAD(z));
f32 cosxcosz = cosx * cosz;
f32 cosxsinz = cosx * sinz;
f32 sinxcosz = sinx * cosz;