code_0x8017FEB0 OK (#137)

* almost every function

* atans ok

* import data and rodata

* format `atan_first_8th_array`

* fix signature and rodata

* rename to angle

* Rename the functions to match their OoT counterparts

* rename code_0x8017FEB0 to sys_math_atan
This commit is contained in:
Anghelo Carvajal
2021-05-18 22:58:30 -04:00
committed by GitHub
parent dea3c8fd79
commit 4d6d9c27a4
9 changed files with 136 additions and 28 deletions
+4 -4
View File
@@ -3364,11 +3364,11 @@ s32 Math3d_ColTriTri(TriNorm* tri1, TriNorm* tri2, Vec3f* uParm3);
// void func_8017FAA8(void);
// void func_8017FB1C(UNK_TYPE1 param_1, UNK_TYPE1 param_2, UNK_TYPE1 param_3, UNK_TYPE1 param_4, UNK_TYPE4 param_5, UNK_TYPE4 param_6, UNK_TYPE4 param_7, UNK_TYPE4 param_8, UNK_TYPE4 param_9, UNK_TYPE4 param_10, UNK_TYPE4 param_11);
// void func_8017FD44(void);
s16 atans_first_8th(f32 opposite, f32 adjacent);
s16 atans(f32 opposite, f32 adjacent);
f32 atan(f32 opposite, f32 adjacent);
u16 Math_GetAtan2Tbl(f32 opposite, f32 adjacent);
s16 Math_Atan2S(f32 opposite, f32 adjacent);
f32 Math_Atan2F(f32 opposite, f32 adjacent);
s16 Math_FAtan2F(f32 adjacent, f32 opposite);
s16 atan_flip(f32 adjacent, f32 opposite);
f32 Math_Acot2F(f32 adjacent, f32 opposite);
void SysMatrix_StateAlloc(GameState* ctxt);
void SysMatrix_StatePush(void);
void SysMatrix_StatePop(void);
-2
View File
@@ -1774,7 +1774,6 @@ extern UNK_PTR D_801D1540;
extern f32 D_801D1570[13];
extern Vec3f D_801D15B0;
// extern UNK_TYPE4 D_801D15BC;
extern s16 atan_first_8th_array[1025];
extern RSPMatrix D_801D1DE0;
extern MtxF D_801D1E20;
extern UNK_PTR D_801D1E60;
@@ -3130,7 +3129,6 @@ extern f32 Math3D_ColSphereSphereIntersectAndDistance_min_intersect;
extern f32 D_801E01CC;
extern f32 D_801E01D0;
extern f32 D_801E01D4;
extern f32 D_801E01E0;
extern f32 D_801E01F0;
extern f32 D_801E01F4;
extern f32 D_801E01F8;