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

# GLKMatrix3MakeScale(_:_:_:)

Returns a 3x3 matrix that performs a scaling transformation.

## Declaration

```swift
func GLKMatrix3MakeScale(_ sx: Float, _ sy: Float, _ sz: Float) -> GLKMatrix3
```

## Parameters

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

## See Also

### Creating Matrices

- [GLKMatrix3Make(_:_:_:_:_:_:_:_:_:)](glkit/glkmatrix3make(_:_:_:_:_:_:_:_:_:).md)
- [GLKMatrix3MakeAndTranspose(_:_:_:_:_:_:_:_:_:)](glkit/glkmatrix3makeandtranspose(_:_:_:_:_:_:_:_:_:).md)
- [GLKMatrix3MakeWithArray(_:)](glkit/glkmatrix3makewitharray(_:).md)
- [GLKMatrix3MakeWithArrayAndTranspose(_:)](glkit/glkmatrix3makewitharrayandtranspose(_:).md)
- [GLKMatrix3MakeWithColumns(_:_:_:)](glkit/glkmatrix3makewithcolumns(_:_:_:).md)
- [GLKMatrix3MakeWithRows(_:_:_:)](glkit/glkmatrix3makewithrows(_:_:_:).md)
- [GLKMatrix3MakeRotation(_:_:_:_:)](glkit/glkmatrix3makerotation(_:_:_:_:).md)
- [GLKMatrix3MakeXRotation(_:)](glkit/glkmatrix3makexrotation(_:).md)
- [GLKMatrix3MakeYRotation(_:)](glkit/glkmatrix3makeyrotation(_:).md)
- [GLKMatrix3MakeZRotation(_:)](glkit/glkmatrix3makezrotation(_:).md)
- [GLKMatrix3MakeWithQuaternion(_:)](glkit/glkmatrix3makewithquaternion(_:).md)
