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

# GLKMatrix3MakeXRotation(_:)

Returns a `3x3` matrix that performs a rotation around the positive x-axis.

```
func GLKMatrix3MakeXRotation(_ radians: Float) -> GLKMatrix3
```

## Parameters

`radians`

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

## Return Value

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