NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
|
Go to the source code of this file.
Namespaces | |
namespace | cM |
C Math library. | |
Functions | |
float | cM::getCircleUnit () |
bool | cM::isZero (float val) |
s16 | cM::rad2s (float rad) |
Converts an angle from radians to units. | |
u16 | U_GetAtanTable (float sin, float cos) |
u32 | cM::atan2i (float sin, float cos) |
s16 | cM::atan2s (float sin, float cos) |
Converts a sine and a cosine to an angle in units. | |
void | cM::initRnd (ulong seed) |
Initializes s_rnd with the given seed. | |
float | cM::rnd () |
Generates a floating point number between 0 and 1. | |
int | cM::rndInt (int max) |
Generates an integer between 0 and the given max. | |
float | cM::rndF (float max) |
Generates a floating point number between 0 and the given max. | |
Variables | |
static cM_rand_c | s_rnd = cM_rand_c(100) |
[Used for tile randomization, eye animations and a few more things]. | |
static cM_rand_c | s_rnd2 = cM_rand_c(101) |
[Unused]. | |
static u16 | atntable [1025] |
u16 U_GetAtanTable | ( | float | sin, |
float | cos ) |
Definition at line 119 of file c_math.cpp.
[Used for tile randomization, eye animations and a few more things].
Definition at line 8 of file c_math.cpp.
[Unused].
Definition at line 9 of file c_math.cpp.
|
static |
Definition at line 12 of file c_math.cpp.