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

Description

Classes

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.
 

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 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.
 
f32 PSVECMag (const Vec *v)
 Computes the magnitude of a vector.
 

Typedef Documentation

◆ Mtx

typedef float Mtx[3][4]

A 3x4 matrix.

Definition at line 12 of file mtx.h.

◆ Mtx44

typedef float Mtx44[4][4]

A 4x4 matrix.

Definition at line 13 of file mtx.h.

Function Documentation

◆ PSMTXIdentity()

void PSMTXIdentity ( Mtx mtx)

Sets the given matrix to the identity matrix.

◆ PSMTXConcat()

void PSMTXConcat ( const Mtx a,
const Mtx b,
Mtx out 
)

Concatenates two matrices.

◆ PSMTXCopy()

void PSMTXCopy ( const Mtx src,
Mtx dst 
)

Copies a matrix.

◆ PSMTXTrans()

void PSMTXTrans ( Mtx mtx,
float  x,
float  y,
float  z 
)

Sets a translation matrix with the given components.

◆ PSMTXScale()

void PSMTXScale ( Mtx mtx,
float  x,
float  y,
float  z 
)

Sets a scaling matrix with the given components.

◆ PSVECAdd()

void PSVECAdd ( const Vec v1,
const Vec v2,
Vec out 
)

Sums two vectors together.

◆ PSVECSubtract()

void PSVECSubtract ( const Vec v1,
const Vec v2,
Vec out 
)

Subtracts vector v2 from vector v1.

◆ PSVECScale()

void PSVECScale ( const Vec in,
Vec out,
float  scale 
)

Multiplies a vector by a scalar.

◆ PSVECMag()

f32 PSVECMag ( const Vec v)

Computes the magnitude of a vector.