sm64coopdx/lib/src/guMtxF2L.c
Prince Frizzy 75bb9b7912
Update to Refresh 13 (#19)
* Refresh 13

Co-authored-by: n64 <n64>
2022-03-13 00:17:10 -08:00

24 lines
441 B
C

#include "libultra_internal.h"
#include <string.h>
void guMtxF2L(float mf[4][4], Mtx *m) {
memcpy(m->m, mf, sizeof(Mtx));
}
void guMtxIdentF(float mf[4][4]) {
int r, c;
for (r = 0; r < 4; r++) {
for (c = 0; c < 4; c++) {
if (r == c) {
mf[r][c] = 1.0f;
} else {
mf[r][c] = 0.0f;
}
}
}
}
void guMtxIdent(Mtx *m) {
guMtxIdentF(m->m);
}