Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
|
Functions | |
s16 | cM_rad2s (float rad) |
u16 | U_GetAtanTable (float f0, float f1) |
s16 | cM_atan2s (float y, float x) |
float | cM_atan2f (float y, float x) |
void | cM_initRnd (int s0, int s1, int s2) |
float | cM_rnd () |
float | cM_rndF (float max) |
float | cM_rndFX (float max) |
void | cM_initRnd2 (int s0, int s1, int s2) |
float | cM_rnd2 () |
float | cM_rndF2 (float max) |
float | cM_rndFX2 (float max) |
Variables | |
static u16 | atntable [1025] |
static s32 | r0 |
static s32 | r1 |
static s32 | r2 |
static s32 | r02 |
static s32 | r12 |
static s32 | r22 |
c_math.cpp Math Helper Utilities
float cM_rnd | ( | ) |
Gets a random value
float 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 |