guMtxXFMF

guMtxXFMF [Function]

Function

guMtxXFMF

Coordinate transformation (floating-point matrix)

Syntax

#include <ultra64.h>        /* gu.h */
void guMtxXFMF(
        float mf[4][4],
        float x,
        float y,
        float z,
        float *ox,
        float *oy,
        float *oz);

Arguments

mf
the 4x4 Matrix
x
x-coordinate to transform
y
y-coordinate to transform
z
z-coordinate to transform
ox
Pointer to resulting x-coordinate
oy
Pointer to resulting y-coordinate
oz
Pointer to resulting z-coordinate

Returned value

None

Description

Transforms one set of coordinates (x, y, z) using the specified matrix. This function provides a useful way to process matrices on the host CPU. When this function is called, the result is the creation of coordinates as shown below:

Fixed-point matrices are handled with the guMtxXFML function.

See also

guMtxCatF, guMtxCatL, and guMtxXFML

Revision history

03/01/99 Completely rewritten.