---
title: matrix
framework: modelio
role: symbol
role_heading: Instance Property
path: modelio/mdltransformcomponent/matrix
---

# matrix

The transform matrix that defines the local coordinate space relative to a parent coordinate space.

## Declaration

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

## Discussion

Discussion This matrix defines the position, orientation, shear, and scale for any object affected by the transform component, relative to the coordinate space of its parent. If the transform component includes time-based transform information, this method returns the local transform matrix as of the earliest time sample (as reported by the minimumTime property).

## See Also

### Working with Static Transforms

- [setLocalTransform(_:)](modelio/mdltransformcomponent/setlocaltransform(_:).md)
