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);