# TransformMixin.getMatrix
Gets the transformation matrix of the node

{/* Do not edit this file. It is automatically generated by API Documenter. */}

## TransformMixin.getMatrix() method

Gets the transformation matrix of the node

**Signature:**

```typescript
getMatrix(frame?: number): Matrix;
```

## Parameters

<table>
  <thead>
    <tr>
      <th>
        Parameter
      </th>

      <th>
        Type
      </th>

      <th>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        frame
      </td>

      <td>
        number
      </td>

      <td>
        _(Optional)_ Optional frame number to get the matrix from. Defaults to current frame.
      </td>
    </tr>
  </tbody>
</table>

**Returns:**

[Matrix](../../values/matrix)

The transformation matrix of the node

## Example

```ts
// Get the transformation matrix at frame 15
const matrix = node.getMatrix(15);
console.log("Matrix at frame 15:", matrix);
```
