---
title: "SCNMatrix4Mult(_:_:)"
framework: scenekit
role: symbol
role_heading: Function
path: "scenekit/scnmatrix4mult(_:_:)"
---

# SCNMatrix4Mult(_:_:)

Returns the product of two matrices.

## Declaration

```swift
func SCNMatrix4Mult(_ a: SCNMatrix4, _ b: SCNMatrix4) -> SCNMatrix4
```

```swift
func SCNMatrix4Mult(_ a: SCNMatrix4, _ b: SCNMatrix4) -> SCNMatrix4
```

## Parameters

- `a`: The multiplicand, or left operand of matrix multiplication.
- `b`: The multiplier, or right operand of matrix multiplication.

## Return Value

Return Value The matrix product of the matA and matB parameters.

## Discussion

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(_:_:_:_:)](scenekit/scnmatrix4translate(_:_:_:_:).md)
- [SCNMatrix4Rotate(_:_:_:_:_:)](scenekit/scnmatrix4rotate(_:_:_:_:_:).md)
- [SCNMatrix4Scale(_:_:_:_:)](scenekit/scnmatrix4scale(_:_:_:_:).md)
- [SCNMatrix4Invert(_:)](scenekit/scnmatrix4invert(_:).md)
