<!--
{
  "availability" : [
    "iOS: 5.0.0 -",
    "iPadOS: 5.0.0 -",
    "macOS: 10.8.0 -",
    "tvOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "GLKit",
  "identifier" : "/documentation/GLKit/GLKMatrix4",
  "metadataVersion" : "0.1.0",
  "role" : "Type Alias",
  "symbol" : {
    "kind" : "Type Alias",
    "modules" : [
      "GLKit"
    ],
    "preciseIdentifier" : "c:@T@GLKMatrix4"
  },
  "title" : "GLKMatrix4"
}
-->

# GLKMatrix4

A `4x4` matrix.

```
typealias GLKMatrix4 = _GLKMatrix4
```

## Discussion

### Fields

|Name |Description                                                            |
|-----|-----------------------------------------------------------------------|
|`m`  |A one-dimensional array of the matrix’s elements in column-major order.|
|`m00`|The `[0,0]` element of the matrix.                                     |
|`m01`|The `[0,1]` element of the matrix.                                     |
|`m02`|The `[0,2]` element of the matrix.                                     |
|`m03`|The `[0,3]` element of the matrix.                                     |
|`m10`|The `[1,0]` element of the matrix.                                     |
|`m11`|The `[1,1]` element of the matrix.                                     |
|`m12`|The `[1,2]` element of the matrix.                                     |
|`m13`|The `[1,3]` element of the matrix.                                     |
|`m20`|The `[2,0]` element of the matrix.                                     |
|`m21`|The `[2,1]` element of the matrix.                                     |
|`m22`|The `[2,2]` element of the matrix.                                     |
|`m23`|The `[2,3]` element of the matrix.                                     |
|`m30`|The `[3,0]` element of the matrix.                                     |
|`m31`|The `[3,1]` element of the matrix.                                     |
|`m32`|The `[3,2]` element of the matrix.                                     |
|`m33`|The `[3,3]` element of 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)