Returns the product of two matrices.
SDKs
- iOS 8.0+
- macOS 10.10+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Scene
Kit
Declaration
func SCNMatrix4Mult(_ a: SCNMatrix4, _ b: SCNMatrix4) -> SCNMatrix4
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 mat
and mat
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
.