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

# GLKMatrix4GetMatrix3(_:)

Returns the upper-left `3x3` section of a `4x4` matrix.

```
func GLKMatrix4GetMatrix3(_ matrix: GLKMatrix4) -> GLKMatrix3
```

## Parameters

`matrix`

A `4x4` matrix.

## Return Value

A new `3x3` 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)