guMtxF2L

guMtxF2L [Function]

Function

guMtxF2L

Converts a matrix from floating point to fixed point

Syntax

#include <ultra64.h>        /* gu.h */
void guMtxF2L(float mf[4][4], Mtx *m);

Arguments

mf
Floating-point matrix
m
Pointer to resulting fixed-point matrix

Returned value

None.

Description

Converts the floating-point matrix mf to the fixed-point matrix m. This function provides a useful way to process matrices on the host CPU. For a detailed explanation about the fixed-point format see gSPMatrix. The opposite conversion from fixed point to floating point is handled with the guMtxL2F 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, guMtxL2F

Revision history

03/01/99 Completely rewritten.