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>
3/// @file
4
5#ifdef __cplusplus
6extern "C" {
7#endif
8
9/// @addtogroup mtx
10/// @{
11
12typedef float Mtx[3][4]; ///< A 3x4 matrix.
13typedef float Mtx44[4][4]; ///< A 4x4 matrix.
14
15void PSMTXIdentity(Mtx *mtx); ///< Sets the given matrix to the identity matrix.
16void PSMTXConcat(const Mtx *a, const Mtx *b, Mtx *out); ///< Concatenates two matrices.
17void PSMTXCopy(const Mtx *src, Mtx *dst); ///< Copies a matrix.
18void PSMTXTrans(Mtx *mtx, float x, float y, float z); ///< Sets a translation matrix with the given components.
19void PSMTXScale(Mtx *mtx, float x, float y, float z); ///< Sets a scaling matrix with the given components.
20
21void C_MTXOrtho(Mtx44 *, float, float, float, float, float, float);
22
23/// @}
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.