NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
c_math.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  cM
 C Math library.
 

Functions

s16 cM::rad2s (float rad)
 Converts an angle from radians to units.
 
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.
 
float cM::fmin (float x, float y)
 Gets the minimum float between x and y .
 
float cM::fmax (float x, float y)
 Gets the maximum float between x and y .