---
title: SCNMatrix4
framework: scenekit
role: symbol
role_heading: Type Alias
path: scenekit/scnmatrix4-swift.typealias
---

# SCNMatrix4

A representation of a 4 x 4 matrix.

## Declaration

```swift
typealias SCNMatrix4 = CATransform3D
```

## Discussion

Discussion SceneKit uses matrices to represent coordinate space transformations, which in turn can represent the combined position, rotation or orientation, and scale of an object in three-dimensional space. important: In macOS, the fields in this structure are CGFloat values. In iOS, tvOS, and watchOS, these fields are float values.

## Topics

### Creating Transform Matrices

- [SCNMatrix4MakeTranslation(_:_:_:)](scenekit/scnmatrix4maketranslation(_:_:_:).md)
- [SCNMatrix4MakeRotation(_:_:_:_:)](scenekit/scnmatrix4makerotation(_:_:_:_:).md)
- [SCNMatrix4MakeScale(_:_:_:)](scenekit/scnmatrix4makescale(_:_:_:).md)

### Performing Matrix Operations

- [SCNMatrix4Translate(_:_:_:_:)](scenekit/scnmatrix4translate(_:_:_:_:).md)
- [SCNMatrix4Rotate(_:_:_:_:_:)](scenekit/scnmatrix4rotate(_:_:_:_:_:).md)
- [SCNMatrix4Scale(_:_:_:_:)](scenekit/scnmatrix4scale(_:_:_:_:).md)
- [SCNMatrix4Invert(_:)](scenekit/scnmatrix4invert(_:).md)
- [SCNMatrix4Mult(_:_:)](scenekit/scnmatrix4mult(_:_:).md)

### Converting Matrix Types

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

### Comparing Matrices

- [SCNMatrix4EqualToMatrix4(_:_:)](scenekit/scnmatrix4equaltomatrix4(_:_:).md)
- [SCNMatrix4IsIdentity(_:)](scenekit/scnmatrix4isidentity(_:).md)

### Identity Constant

- [SCNMatrix4Identity](scenekit/scnmatrix4identity.md)

### Matrix Elements

- [m11](scenekit/scnmatrix4-swift.struct/m11.md)
- [m12](scenekit/scnmatrix4-swift.struct/m12.md)
- [m13](scenekit/scnmatrix4-swift.struct/m13.md)
- [m14](scenekit/scnmatrix4-swift.struct/m14.md)
- [m21](scenekit/scnmatrix4-swift.struct/m21.md)
- [m22](scenekit/scnmatrix4-swift.struct/m22.md)
- [m23](scenekit/scnmatrix4-swift.struct/m23.md)
- [m24](scenekit/scnmatrix4-swift.struct/m24.md)
- [m31](scenekit/scnmatrix4-swift.struct/m31.md)
- [m32](scenekit/scnmatrix4-swift.struct/m32.md)
- [m33](scenekit/scnmatrix4-swift.struct/m33.md)
- [m34](scenekit/scnmatrix4-swift.struct/m34.md)
- [m41](scenekit/scnmatrix4-swift.struct/m41.md)
- [m42](scenekit/scnmatrix4-swift.struct/m42.md)
- [m43](scenekit/scnmatrix4-swift.struct/m43.md)
- [m44](scenekit/scnmatrix4-swift.struct/m44.md)

## See Also

### Transforms and Rotations

- [SCNMatrix4](scenekit/scnmatrix4-swift.struct.md)
- [SCNQuaternion](scenekit/scnquaternion.md)
