Function

SCNMatrix4Mult

Returns the product of two matrices.

Declaration

SCNMatrix4 SCNMatrix4Mult(SCNMatrix4 a, SCNMatrix4 b);

Parameters

matA

The multiplicand, or left operand of matrix multiplication.

matB

The multiplier, or right operand of matrix multiplication.

Return Value

The matrix product of the matA and matB parameters.

Discussion

Matrix multiplication is not commutative. As a transformation, the result of multiplying a matrix A by a matrix B is the transformation represented by B followed by the transformation represented by A.

See Also

Performing Matrix Operations

SCNMatrix4Translate

Returns a new matrix created by concatenating the specified matrix with a translation transformation.

SCNMatrix4Rotate

Returns a new matrix created by concatenating the specified matrix with a rotation transformation.

SCNMatrix4Scale

Returns a new matrix created by concatenating the specified matrix with a scale transformation.

SCNMatrix4Invert

Returns the inverse of the specified matrix.