---
title: "GLKMatrix4GetMatrix3(_:)"
framework: GLKit
role: symbol
role_heading: Function
platforms: [iOS 5.0+, iPadOS 5.0+, macOS 10.8+, tvOS 9.0+]
path: "glkit/glkmatrix4getmatrix3(_:)"
---

# GLKMatrix4GetMatrix3(_:)

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

## Declaration

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

## Parameters

- `matrix`: A 4x4 matrix.

## Return Value

Return Value A new 3x3 matrix.

## See Also

### Working With Parts of a Matrix

- [GLKMatrix4GetMatrix2(_:)](glkit/glkmatrix4getmatrix2(_:).md)
- [GLKMatrix4GetColumn(_:_:)](glkit/glkmatrix4getcolumn(_:_:).md)
- [GLKMatrix4GetRow(_:_:)](glkit/glkmatrix4getrow(_:_:).md)
- [GLKMatrix4SetColumn(_:_:_:)](glkit/glkmatrix4setcolumn(_:_:_:).md)
- [GLKMatrix4SetRow(_:_:_:)](glkit/glkmatrix4setrow(_:_:_:).md)
