![]() |
Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
|
Functions | |
s16 | cM_rad2s (f32 rad) |
u16 | U_GetAtanTable (f32 f0, f32 f1) |
s16 | cM_atan2s (f32 y, f32 x) |
f32 | cM_atan2f (f32 y, f32 x) |
void | cM_initRnd (int s0, int s1, int s2) |
f32 | cM_rnd () |
f32 | cM_rndF (f32 max) |
f32 | cM_rndFX (f32 max) |
void | cM_initRnd2 (int s0, int s1, int s2) |
f32 | cM_rnd2 () |
f32 | cM_rndF2 (f32 max) |
f32 | cM_rndFX2 (f32 max) |
Variables | |
static u16 | atntable [1025] |
static s32 | r0 |
static s32 | r1 |
static s32 | r2 |
static s32 | r02 |
static s32 | r12 |
static s32 | r22 |
void cM_initRnd | ( | int | s0, |
int | s1, | ||
int | s2 ) |
void cM_initRnd2 | ( | int | s0, |
int | s1, | ||
int | s2 ) |
c_math.cpp Math Helper Utilities
f32 cM_rnd | ( | ) |
Gets a random value
f32 cM_rnd2 | ( | ) |
Gets a random value between 0 and a given upper bound
max | The upper bound the random value can be |
max
Gets a random value between given bounds
max | The upper and lower bound the random value can be |
max
and +max
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |