guTranslate
Creates a translation modeling matrix (fixed point)
#include <ultra64.h> /* gu.h */
void guTranslate(Mtx *m, float x, float y, float z);
None.
Returns a modeling matrix translated by (x, y, z) to the structure indicated by m. When this function is called, the result is the creation of the following kind of modeling matrix:
For details about the fixed-point format, see gSPMatrix. Floating point is handled by the guTranslateF function.
The Mtx structure looks like this:
typedef long Mtx_t[4][4];
typedef union {
Mtx_t m;
long long int force_structure_alignment;
} Mtx;
03/01/99 Completely rewritten.