NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
|
Math library.
Classes | |
struct | _VEC2 |
A two-dimensional floating point vector. More... | |
struct | _VEC3 |
struct | MTX34 |
A 3x4 matrix. More... | |
struct | VEC2 |
struct | VEC3 |
A three-dimensional floating point vector. More... | |
Functions | |
float | FrSqrt (float x) |
Computes the inverse square root of the given value. | |
float | FSqrt (float x) |
Computes the square root of the given value. | |
float | SinFIdx (float fidx) |
Computes the sine value. | |
float | CosFIdx (float fidx) |
Computes the cosine value. | |
float | SinF (float ang) |
Computes the sine value. | |
float | CosF (float ang) |
Computes the cosine value. | |
float | SinS (short ang) |
Computes the sine value. | |
float | CosS (short ang) |
Computes the cosine value. | |
Variables | |
const f32 | F_PI = 3.141592653589793f |
The value of PI. | |
float nw4r::math::FrSqrt | ( | float | x | ) |
Computes the inverse square root of the given value.
|
inline |
Computes the square root of the given value.
Definition at line 12 of file arithmetic.hpp.
float nw4r::math::SinFIdx | ( | float | fidx | ) |
Computes the sine value.
fidx | The angle, measured in units of 1/256th of a circle. |
float nw4r::math::CosFIdx | ( | float | fidx | ) |
Computes the cosine value.
fidx | The angle, measured in units of 1/256th of a circle. |
|
inline |
Computes the sine value.
ang | The angle, measured in units of 1/65536th of a circle. |
Definition at line 22 of file trigonometry.hpp.
|
inline |
Computes the cosine value.
ang | The angle measured in units of 1/65536th of a circle. |
Definition at line 29 of file trigonometry.hpp.
|
inline |
Computes the sine value.
ang | The angle, measured in units of 1/65536th of a circle. |
Definition at line 36 of file trigonometry.hpp.
|
inline |
Computes the cosine value.
ang | The angle measured in units of 1/65536th of a circle. |
Definition at line 43 of file trigonometry.hpp.
const f32 nw4r::math::F_PI = 3.141592653589793f |
The value of PI.
Definition at line 8 of file constant.hpp.