# 3.9.8 Matrix Operations

## Utility Functions

guAlign - Calculate vector alignment for the modeling matrix.
guAlignF - Calculate vector alignment for the modeling matrix.
guLookAtStereo - Calculate the lookat view matrix for the stereo graphics display.
guLookAtStereoF - Calculate lookat view matrix for the stereo graphics display.
guMtxCatF - Concatenate two 4x4 floating-point matrices using multiplication.
guMtxCatL - Concatenate two 4x4 fixed-point matrices using multiplication.
guMtxF2L - Convert the 4x4 floating-point matrix to the fixed-point matrix.
guMtxIdent - Create the 4x4 fixed-point identity matrix.
guMtxIdentF - Create the 4x4 floating-point matrix.
guMtxL2F - Create the 4x4 fixed-point matrix to the floating-point matrix.
guMtxXFMF - Provide the point coordinate transformation using the 4x4 floating-point matrix.
guMtxXFML - Provide the point coordinate transformation using the 4x4 fixed-point matrix.
guNormalize - Normalize the vector.
guPosition - Calculate the modeling matrix.
guPositionF - Calculate the modeling matrix.
guRotate, guRotateRPY, guRotateRPYF, and guRotateF - Rotate the modeling matrix.
guScale - Calculate the scaling matrix.
guScaleF - Calculate the scaling modeling matrix.
guTranslate - Calculate the conversion modeling matrix.
guTranslateF - Calculate the conversion modeling matrix.

## GBI Commands

gSPMatrix - Load the matrix, concatenate, and push the stack.
gSPPopMatrix - Pop the matrix stack.
gSPForceMatrix - Load the new MP matrix.
gSPInsertMatrix - Update the matrix element without using multiplication.

Nintendo® Confidential
Copyright © 1999
Nintendo of America Inc. All Rights Reserved
Nintendo and N64 are registered trademarks of Nintendo
Last Updated March, 1999