Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
MorsGames
GitHub Repository: MorsGames/sm64plus
Path: blob/master/lib/src/guScaleF.c
7857 views
1
#include "libultra_internal.h"
2
3
void guScaleF(float mf[4][4], float x, float y, float z) {
4
guMtxIdentF(mf);
5
mf[0][0] = x;
6
mf[1][1] = y;
7
mf[2][2] = z;
8
mf[3][3] = 1.0;
9
}
10
11
void guScale(Mtx *m, float x, float y, float z) {
12
float mf[4][4];
13
guScaleF(mf, x, y, z);
14
guMtxF2L(mf, m);
15
}
16
17