# Sandbox.MatrixExtensions.RotateLocal2D

```csharp
static void RotateLocal2D(ref Matrix matrix, float degrees)
```

Prepends a rotation in degrees to a 2D affine matrix, leaving its origin unchanged.
Positive angles rotate clockwise in screen coordinates. Mutates the matrix without validation.

### Parameters

- `ref matrix` (`Matrix`)
- `degrees` (`float`)

Declared in [Sandbox.MatrixExtensions](/api/Sandbox.MatrixExtensions).
Assembly: `Sandbox.System`.
