Return to previous page | Return to menu | Go to next page


void
Matrix function

slMultiMatrix

Multiply the current matrix by the specified matrix

Format

void slMultiMatrix(mtptr)
MATRIX mtptr ;

Parameter

mtptr Start address of MATRIX type variable to be multiplied (output)

Function

Multiply the current matrix by the specified matrix to create a new current matrix.

Return value

None

Remarks

In SGL, the matrix is ​​arranged in memory as 4 rows x 3 columns.
However, when performing arithmetic processing between matrices like the corresponding function, the basic concept of matrix calculation is internally expanded to a 4-row x 4-column matrix as shown below.

Reference: Chapter 5 Matrix

slMultiMatrix


Return to previous page | Return to menu | Go to next page