summaryrefslogtreecommitdiff
path: root/src/os/guTranslateF.c
blob: ef4df09da5797e6331f2e24d37eb77f22fc641b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "libultra_internal.h"
#include "port/interpolation/FrameInterpolation.h"

void guTranslateF(float m[4][4], float x, float y, float z) {
    guMtxIdentF(m);
    m[3][0] = x;
    m[3][1] = y;
    m[3][2] = z;
}

void guTranslate(Mtx* m, float x, float y, float z) {
    float mf[4][4];
    guTranslateF(mf, x, y, z);
    FrameInterpolation_RecordMatrixMtxFToMtx((MtxF*) mf, m);
    guMtxF2L(mf, m);
}