# Sandbox.MatrixExtensions.TranslateLocal2D

## Overload 1

```csharp
static void TranslateLocal2D(ref Matrix matrix, float x, float y)
```

Prepends a translation along the current axes of a 2D affine matrix.
Mutates the matrix without validating its affine form or checking for overflow.

### Parameters

- `ref matrix` (`Matrix`)
- `x` (`float`)
- `y` (`float`)

## Overload 2

```csharp
static void TranslateLocal2D(ref Matrix matrix, Vector2 offset)
```

Prepends a translation along the current axes of a 2D affine matrix.
Mutates the matrix without validating its affine form or checking for overflow.

### Parameters

- `ref matrix` (`Matrix`)
- `offset` (`Vector2`)

Declared in [Sandbox.MatrixExtensions](/api/Sandbox.MatrixExtensions).
Assembly: `Sandbox.System`.
