NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
mtx.h
Go to the documentation of this file.
1#pragma once
2#include <types.h>
4
5#ifdef __cplusplus
6extern "C" {
7#endif
8
11
12typedef float Mtx[3][4];
13typedef float Mtx44[4][4];
14
15void PSMTXIdentity(Mtx *mtx);
16void PSMTXConcat(const Mtx *a, const Mtx *b, Mtx *out);
17void PSMTXCopy(const Mtx *src, Mtx *dst);
18void PSMTXTrans(Mtx *mtx, float x, float y, float z);
19void PSMTXScale(Mtx *mtx, float x, float y, float z);
20
21void C_MTXOrtho(Mtx44 *, float, float, float, float, float, float);
22
24
25#ifdef __cplusplus
26}
27#endif
void PSMTXScale(Mtx *mtx, float x, float y, float z)
Sets a scaling matrix with the given components.
float Mtx44[4][4]
A 4x4 matrix.
Definition mtx.h:13
void PSMTXTrans(Mtx *mtx, float x, float y, float z)
Sets a translation matrix with the given components.
void PSMTXConcat(const Mtx *a, const Mtx *b, Mtx *out)
Concatenates two matrices.
void PSMTXCopy(const Mtx *src, Mtx *dst)
Copies a matrix.
float Mtx[3][4]
A 3x4 matrix.
Definition mtx.h:12
void PSMTXIdentity(Mtx *mtx)
Sets the given matrix to the identity matrix.