<!--
{
  "availability" : [
    "iOS: 8.0.0 - 26.0.0",
    "iPadOS: 8.0.0 - 26.0.0",
    "macCatalyst: 13.1.0 - 26.0.0",
    "macOS: 10.8.0 - 26.0.0",
    "tvOS: 9.0.0 - 26.0.0",
    "visionOS: 1.0.0 - 26.0.0",
    "watchOS: 3.0.0 - 26.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "SceneKit",
  "identifier" : "/documentation/SceneKit/SCNMatrix4Scale(_:_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "SceneKit"
    ],
    "preciseIdentifier" : "c:@F@SCNMatrix4Scale"
  },
  "title" : "SCNMatrix4Scale(_:_:_:_:)"
}
-->

# SCNMatrix4Scale(_:_:_:_:)

Returns a new matrix created by concatenating the specified matrix with a scale transformation.

```
func SCNMatrix4Scale(_ m: SCNMatrix4, _ sx: CGFloat, _ sy: CGFloat, _ sz: CGFloat) -> SCNMatrix4
```

## Parameters

`m`

The matrix to be combined with a translation.

`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

A new matrix.

## Discussion

The resulting transformation consists of the specified scale followed by the transformation represented by the `mat` parameter.

---

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)