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