<!--
{
  "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/SCNMatrix4MakeRotation(_:_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "SceneKit"
    ],
    "preciseIdentifier" : "c:@F@SCNMatrix4MakeRotation"
  },
  "title" : "SCNMatrix4MakeRotation(_:_:_:_:)"
}
-->

# SCNMatrix4MakeRotation(_:_:_:_:)

Returns a matrix describing a rotation transformation.

```
func SCNMatrix4MakeRotation(_ angle: CGFloat, _ x: CGFloat, _ y: CGFloat, _ z: CGFloat) -> SCNMatrix4
```

## Parameters

`angle`

The amount of rotation, in radians, measured counterclockwise around the rotation axis.

`x`

The x-component of the rotation axis.

`y`

The y-component of the rotation axis.

`z`

The z-component of the rotation axis.

## Return Value

A new rotation matrix.

## Discussion

---

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)