---
title: "SCNMatrix4ToGLKMatrix4(_:)"
framework: scenekit
role: symbol
role_heading: Function
path: "scenekit/scnmatrix4toglkmatrix4(_:)"
---

# SCNMatrix4ToGLKMatrix4(_:)

Returns a GLKit matrix corresponding to a SceneKit matrix.

## Declaration

```swift
func SCNMatrix4ToGLKMatrix4(_ mat: SCNMatrix4) -> GLKMatrix4
```

```swift
func SCNMatrix4ToGLKMatrix4(_ mat: SCNMatrix4) -> GLKMatrix4
```

## Parameters

- `mat`: A SceneKit matrix.

## Return Value

Return Value A GLKit matrix representing the same 3D transformation.

## See Also

### Converting Matrix Types

- [SCNMatrix4FromGLKMatrix4(_:)](scenekit/scnmatrix4fromglkmatrix4(_:).md)
