---
title: "GLKMatrix4Scale(_:_:_:_:)"
framework: GLKit
role: symbol
role_heading: Function
platforms: [iOS 5.0+, iPadOS 5.0+, macOS 10.8+, tvOS 9.0+]
path: "glkit/glkmatrix4scale(_:_:_:_:)"
---

# GLKMatrix4Scale(_:_:_:_:)

Returns a new 4x4 matrix created by concatenating a matrix with a scaling transform.

## Declaration

```swift
func GLKMatrix4Scale(_ matrix: GLKMatrix4, _ sx: Float, _ sy: Float, _ sz: Float) -> GLKMatrix4
```

## Parameters

- `matrix`: A matrix.
- `sx`: The amount to scale the x component.
- `sy`: The amount to scale the y component.
- `sz`: The amount to scale the z component.

## Return Value

Return Value A new matrix.

## See Also

### Performing Mathematical Operations on Matrices

- [GLKMatrix4Invert(_:_:)](glkit/glkmatrix4invert(_:_:).md)
- [GLKMatrix4Transpose(_:)](glkit/glkmatrix4transpose(_:).md)
- [GLKMatrix4InvertAndTranspose(_:_:)](glkit/glkmatrix4invertandtranspose(_:_:).md)
- [GLKMatrix4Multiply(_:_:)](glkit/glkmatrix4multiply(_:_:).md)
- [GLKMatrix4Rotate(_:_:_:_:_:)](glkit/glkmatrix4rotate(_:_:_:_:_:).md)
- [GLKMatrix4RotateWithVector3(_:_:_:)](glkit/glkmatrix4rotatewithvector3(_:_:_:).md)
- [GLKMatrix4RotateWithVector4(_:_:_:)](glkit/glkmatrix4rotatewithvector4(_:_:_:).md)
- [GLKMatrix4RotateX(_:_:)](glkit/glkmatrix4rotatex(_:_:).md)
- [GLKMatrix4RotateY(_:_:)](glkit/glkmatrix4rotatey(_:_:).md)
- [GLKMatrix4RotateZ(_:_:)](glkit/glkmatrix4rotatez(_:_:).md)
- [GLKMatrix4ScaleWithVector3(_:_:)](glkit/glkmatrix4scalewithvector3(_:_:).md)
- [GLKMatrix4ScaleWithVector4(_:_:)](glkit/glkmatrix4scalewithvector4(_:_:).md)
- [GLKMatrix4Translate(_:_:_:_:)](glkit/glkmatrix4translate(_:_:_:_:).md)
- [GLKMatrix4TranslateWithVector3(_:_:)](glkit/glkmatrix4translatewithvector3(_:_:).md)
- [GLKMatrix4TranslateWithVector4(_:_:)](glkit/glkmatrix4translatewithvector4(_:_:).md)
