mirror of
https://github.com/zeldaret/tp
synced 2026-05-23 06:54:28 -04:00
b728ec1ef5
* J3DUClipper sinit * sincosTable_ etc * decompile JMATrigonometric sinit * f_op_actor_mng * move f_op_actor_mng and parts of mDo_ext * J3DSys sinit * f_op_scene_req * failed matching attempt for decodeSZS__9JKRDecompFPUcPUcUlUl * mX -> x * fix mCull and fopAcM_prm_class members * fix a few function parameters * move missing NON_MATCHING * remove some unneeded data * turns out that data was not unused * remove unused asm * readd asm deleted by accident
29 lines
639 B
C
29 lines
639 B
C
#ifndef C_MATH_H
|
|
#define C_MATH_H
|
|
|
|
#include "JSystem/JMath/JMATrigonometric.h"
|
|
#include "dolphin/types.h"
|
|
|
|
s16 cM_rad2s(float);
|
|
u16 U_GetAtanTable(float, float);
|
|
s16 cM_atan2s(float, float);
|
|
float cM_atan2f(float, float);
|
|
void cM_initRnd(int, int, int);
|
|
float cM_rnd(void);
|
|
float cM_rndF(float);
|
|
float cM_rndFX(float);
|
|
void cM_initRnd2(int, int, int);
|
|
float cM_rnd2(void);
|
|
float cM_rndF2(float);
|
|
float cM_rndFX2(float);
|
|
|
|
inline f32 cM_scos(s16 s) {
|
|
return JMath::sincosTable_.table[static_cast<u16>(s) >> 3].b1;
|
|
}
|
|
|
|
inline f32 cM_ssin(s16 s) {
|
|
return JMath::sincosTable_.table[static_cast<u16>(s) >> 3].a1;
|
|
}
|
|
|
|
#endif /* C_MATH_H */
|