---
title: "SCNMatrix4MakeScale(_:_:_:)"
framework: scenekit
role: symbol
role_heading: Function
path: "scenekit/scnmatrix4makescale(_:_:_:)"
---

# SCNMatrix4MakeScale(_:_:_:)

Returns a matrix describing a scale transformation.

## Declaration

```swift
func SCNMatrix4MakeScale(_ sx: Float, _ sy: Float, _ sz: Float) -> SCNMatrix4
```

```swift
func SCNMatrix4MakeScale(_ sx: CGFloat, _ sy: CGFloat, _ sz: CGFloat) -> SCNMatrix4
```

## Parameters

- `sx`: The scale factor in the x-axis direction.
- `sy`: The scale factor in the y-axis direction.
- `sz`: The scale factor in the z-axis direction.

## Return Value

Return Value A new scale matrix.

## See Also

### Creating Transform Matrices

- [SCNMatrix4MakeTranslation(_:_:_:)](scenekit/scnmatrix4maketranslation(_:_:_:).md)
- [SCNMatrix4MakeRotation(_:_:_:_:)](scenekit/scnmatrix4makerotation(_:_:_:_:).md)
