d_a_b_oh mostly done

This commit is contained in:
TakaRikka
2023-07-16 23:44:23 -07:00
parent 5ba9e54e2f
commit 3e5903296f
4 changed files with 896 additions and 274 deletions
+13 -13
View File
@@ -4,10 +4,10 @@
#include "JSystem/JMath/JMATrigonometric.h"
#include "dolphin/types.h"
s16 cM_rad2s(float);
s16 cM_rad2s(float rad);
u16 U_GetAtanTable(float, float);
s16 cM_atan2s(float, float);
float cM_atan2f(float, float);
s16 cM_atan2s(float y, float x);
float cM_atan2f(float y, float x);
void cM_initRnd(int, int, int);
float cM_rnd(void);
float cM_rndF(float);
@@ -17,24 +17,24 @@ float cM_rnd2(void);
float cM_rndF2(float);
float cM_rndFX2(float);
inline f32 cM_scos(s16 s) {
return JMASCos(s);
inline f32 cM_scos(s16 x) {
return JMASCos(x);
}
inline f32 cM_ssin(s16 s) {
return JMASSin(s);
inline f32 cM_ssin(s16 x) {
return JMASSin(x);
}
inline s16 cM_deg2s(f32 val) {
return val * 182.04445f;
inline s16 cM_deg2s(f32 deg) {
return deg * 182.04445f;
}
inline s16 i_cM_deg2s(f32 val) {
return val;
inline s16 i_cM_deg2s(f32 deg) {
return deg;
}
inline f32 cM_fsin(f32 v) {
return JMASSin(cM_rad2s(v));
inline f32 cM_fsin(f32 x) {
return JMASSin(cM_rad2s(x));
}
inline f32 cM_sht2d(f32 v) {