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

# GLKMatrix4Rotate(_:_:_:_:_:)

Returns a new `4x4` matrix created by concatenating a matrix with a rotation around a vector.

```
func GLKMatrix4Rotate(_ matrix: GLKMatrix4, _ radians: Float, _ x: Float, _ y: Float, _ z: Float) -> GLKMatrix4
```

## Parameters

`matrix`

A matrix.

`radians`

The angle of the rotation (a positive angle is counterclockwise).

`x`

The `x` component of the rotation vector.

`y`

The `y` component of the rotation vector.

`z`

The `z` component of the rotation vector.

## Return Value

A new 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)