NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
|
Classes | |
struct | _QUAT |
struct | Vec2 |
A two-dimensional floating point vector. More... | |
struct | Vec |
A three-dimensional floating point vector. More... | |
struct | S16Vec |
A three-dimensional short vector. More... | |
Typedefs | |
typedef float | Mtx[3][4] |
A 3x4 matrix. | |
typedef float | Mtx44[4][4] |
A 4x4 matrix. | |
typedef struct _QUAT | QUAT |
Functions | |
void | PSMTXIdentity (Mtx *mtx) |
Sets the given matrix to the identity matrix. | |
void | PSMTXConcat (const Mtx *a, const Mtx *b, Mtx *out) |
Concatenates two matrices. | |
void | PSMTXCopy (const Mtx *src, Mtx *dst) |
Copies a matrix. | |
void | PSMTXTrans (Mtx *mtx, float x, float y, float z) |
Sets a translation matrix with the given components. | |
void | PSMTXScale (Mtx *mtx, float x, float y, float z) |
Sets a scaling matrix with the given components. | |
void | PSMTXQuat (Mtx *mtx, QUAT *) |
void | C_QUATMtx (QUAT *, Mtx *) |
void | C_QUATSlerp (QUAT *, QUAT *, QUAT *, float) |
void | C_MTXOrtho (Mtx44 *, float, float, float, float, float, float) |
void | PSVECAdd (const Vec *v1, const Vec *v2, Vec *out) |
Sums two vectors together. | |
void | PSVECSubtract (const Vec *v1, const Vec *v2, Vec *out) |
Subtracts vector v2 from vector v1 . | |
void | PSVECScale (const Vec *in, Vec *out, float scale) |
Multiplies a vector by a scalar. | |
float | PSVECSquareDistance (const Vec *v1, const Vec *v2) |
Computes the square distance between two vectors. | |
f32 | PSVECMag (const Vec *v) |
Computes the magnitude of a vector. | |
void PSMTXIdentity | ( | Mtx * | mtx | ) |
Sets the given matrix to the identity matrix.
void PSMTXTrans | ( | Mtx * | mtx, |
float | x, | ||
float | y, | ||
float | z ) |
Sets a translation matrix with the given components.
void PSMTXScale | ( | Mtx * | mtx, |
float | x, | ||
float | y, | ||
float | z ) |
Sets a scaling matrix with the given components.
Subtracts vector v2
from vector v1
.
Computes the square distance between two vectors.
f32 PSVECMag | ( | const Vec * | v | ) |
Computes the magnitude of a vector.