---
title: matrix
framework: realitykit
role: symbol
role_heading: Instance Property
path: realitykit/transform/matrix
---

# matrix

The transform represented as a 4x4 matrix.

## Declaration

```swift
var matrix: float4x4 { get set }
```

## Discussion

Discussion The Transform component can’t represent all transforms that a general 4x4 matrix can represent. Using a 4x4 matrix to set the transform is therefore a lossy event that might result in certain transformations, like shear, being dropped.

## See Also

### Setting transform properties

- [scale](realitykit/transform/scale.md)
- [rotation](realitykit/transform/rotation.md)
- [translation](realitykit/transform/translation.md)
