guMtxIdent

guMtxIdent [Function]

Function

guMtxIdent

Creates a unit matrix (fixed point)

Syntax

#include <ultra64.h>        /* gu.h */
void guMtxIdent(Mtx *m);

Arguments

m
Pointer to the resulting matrix

Returned value

None.

Description

Returns a unit matrix to the structure indicated by m. When this function is called, the result is the creation of the following type of matrix:

For a detailed explanation about the fixed-point format, see gSPMatrix. Floating point is handled with the guMtxIdentF function.

Note

The Mtx structure looks like this:

typedef long  Mtx_t[4][4];
typedef union {
     Mtx_t          m;
     long long int  force_structure_alignment;
} Mtx;

See also

gSPMatrix, guMtxCatF, guMtxCatL, and guMtxIdentF

Revision history

03/01/99 Completely rewritten.