---
title: "SCNMatrix4MakeTranslation(_:_:_:)"
framework: scenekit
role: symbol
role_heading: Function
path: "scenekit/scnmatrix4maketranslation(_:_:_:)"
---

# SCNMatrix4MakeTranslation(_:_:_:)

Returns a matrix describing a translation transformation.

## Declaration

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

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

## Parameters

- `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 translation matrix.

## See Also

### Creating Transform Matrices

- [SCNMatrix4MakeRotation(_:_:_:_:)](scenekit/scnmatrix4makerotation(_:_:_:_:).md)
- [SCNMatrix4MakeScale(_:_:_:)](scenekit/scnmatrix4makescale(_:_:_:).md)
