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

# GLKMatrixStackScaleWithVector4(_:_:)

Replaces the contents of the top matrix with a matrix calculated by composing the top matrix with a scaling operation defined by a vector.

```
func GLKMatrixStackScaleWithVector4(_ stack: GLKMatrixStack, _ scaleVector: GLKVector4)
```

## Parameters

`stack`

A matrix stack.

`scaleVector`

A vector whose `x`,`y` and `z` components are used to scale the matrix.

---

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)