---
title: "SCNMatrix4Translate(_:_:_:_:)"
framework: scenekit
role: symbol
role_heading: Function
path: "scenekit/scnmatrix4translate(_:_:_:_:)"
---

# SCNMatrix4Translate(_:_:_:_:)

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

## Declaration

```swift
func SCNMatrix4Translate(_ m: SCNMatrix4, _ tx: Float, _ ty: Float, _ tz: Float) -> SCNMatrix4
```

```swift
func SCNMatrix4Translate(_ m: SCNMatrix4, _ tx: CGFloat, _ ty: CGFloat, _ tz: CGFloat) -> SCNMatrix4
```

## Parameters

- `m`: The matrix to be combined with a translation.
- `tx`: The translation distance in the x-axis direction.
- `ty`: The translation distance in the y-axis direction.
- `tz`: The translation distance in the z-axis direction.

## Return Value

Return Value A new matrix.

## Discussion

Discussion The resulting transformation consists of the specified translation followed by the transformation represented by the mat parameter.

## See Also

### Performing Matrix Operations

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