Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
c_math.h
Go to the documentation of this file.
1#ifndef C_MATH_H
2#define C_MATH_H
3
5
6s16 cM_rad2s(float rad);
7u16 U_GetAtanTable(float, float);
8s16 cM_atan2s(float y, float x);
9float cM_atan2f(float y, float x);
10void cM_initRnd(int, int, int);
11float cM_rnd();
12float cM_rndF(float);
13float cM_rndFX(float);
14void cM_initRnd2(int, int, int);
15float cM_rnd2();
16float cM_rndF2(float);
17float cM_rndFX2(float);
18
19inline f32 cM_scos(s16 x) {
20 return JMASCos(x);
21}
22
23inline f32 cM_ssin(s16 x) {
24 return JMASSin(x);
25}
26
28 return deg * 182.04445f;
29}
30
32 return deg;
33}
34
35inline f32 cM_fcos(f32 x) {
36 return JMASCos(cM_rad2s(x));
37}
38
39inline f32 cM_fsin(f32 x) {
40 return JMASSin(cM_rad2s(x));
41}
42
43inline f32 cM_sht2d(f32 v) {
44 return v * 0.005493164f;
45}
46
47inline f32 cM_s2rad(s16 x) {
48 return x * 9.58738e-05f;
49}
50
51#endif /* C_MATH_H */
f32 JMASSin(s16 v)
Definition JMATrigonometric.h:116
f32 JMASCos(s16 v)
Definition JMATrigonometric.h:113
T cLib_calcTimer(T *value)
Definition c_lib.h:74
s16 cM_deg2s(f32 deg)
Definition c_math.h:27
float cM_rndF(float)
Definition c_math.cpp:203
u16 U_GetAtanTable(float, float)
Definition c_math.cpp:114
s16 i_cM_deg2s(f32 deg)
Definition c_math.h:31
f32 cM_ssin(s16 x)
Definition c_math.h:23
f32 cM_fcos(f32 x)
Definition c_math.h:35
float cM_rndF2(float)
Definition c_math.cpp:243
s16 cM_rad2s(float rad)
Definition c_math.cpp:10
float cM_rndFX2(float)
Definition c_math.cpp:248
f32 cM_scos(s16 x)
Definition c_math.h:19
f32 cM_fsin(f32 x)
Definition c_math.h:39
void cM_initRnd2(int, int, int)
Definition c_math.cpp:228
float cM_atan2f(float y, float x)
Definition c_math.cpp:164
float cM_rnd2()
Definition c_math.cpp:235
void cM_initRnd(int, int, int)
Definition c_math.cpp:179
float cM_rndFX(float)
Definition c_math.cpp:213
s16 cM_atan2s(float y, float x)
Definition c_math.cpp:119
f32 cM_s2rad(s16 x)
Definition c_math.h:47
float cM_rnd()
Definition c_math.cpp:190
f32 cM_sht2d(f32 v)
Definition c_math.h:43
double x double x
Definition e_atan2.c:58
double x double y
Definition e_atan2.c:58
double v
Definition e_pow.c:163
float f32
Definition types.h:22
signed short s16
Definition types.h:5
unsigned short u16
Definition types.h:9