<!--
{
  "availability" : [
    "iOS: 5.0.0 -",
    "iPadOS: 5.0.0 -",
    "macOS: 10.8.0 -",
    "tvOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "GLKit",
  "identifier" : "/documentation/GLKit/GLKMatrixStackScale(_:_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "GLKit"
    ],
    "preciseIdentifier" : "c:@F@GLKMatrixStackScale"
  },
  "title" : "GLKMatrixStackScale(_:_:_:_:)"
}
-->

# GLKMatrixStackScale(_:_:_:_:)

Replaces the contents of the top matrix with a matrix calculated by scaling the contents of the top matrix.

```
func GLKMatrixStackScale(_ stack: GLKMatrixStack, _ sx: Float, _ sy: Float, _ sz: Float)
```

## Parameters

`stack`

A matrix stack.

`sx`

The scaling factor used to modify the `x` components.

`sy`

The scaling factor used to modify the `y` components.

`sz`

The scaling factor used to modify the `z` components.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)