---
title: "SCNMatrix4Invert(_:)"
framework: scenekit
role: symbol
role_heading: Function
path: "scenekit/scnmatrix4invert(_:)"
---

# SCNMatrix4Invert(_:)

Returns the inverse of the specified matrix.

## Declaration

```swift
func SCNMatrix4Invert(_ m: SCNMatrix4) -> SCNMatrix4
```

```swift
func SCNMatrix4Invert(_ m: SCNMatrix4) -> SCNMatrix4
```

## Parameters

- `m`: The matrix to be inverted.

## Return Value

Return Value The inverse matrix of the specified matrix, or the original matrix if it is not invertible.

## See Also

### Performing Matrix Operations

- [SCNMatrix4Translate(_:_:_:_:)](scenekit/scnmatrix4translate(_:_:_:_:).md)
- [SCNMatrix4Rotate(_:_:_:_:_:)](scenekit/scnmatrix4rotate(_:_:_:_:_:).md)
- [SCNMatrix4Scale(_:_:_:_:)](scenekit/scnmatrix4scale(_:_:_:_:).md)
- [SCNMatrix4Mult(_:_:)](scenekit/scnmatrix4mult(_:_:).md)
