<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [server](./server.md) &gt; [Matrix2](./server.matrix2.md) &gt; [rotate](./server.matrix2.rotate.md)

## Matrix2.rotate() method

Rotates the current matrix by an angle in radians.

**Signature:**

```typescript
rotate(angle: number): Matrix2;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

angle


</td><td>

number


</td><td>

The angle in radians to rotate the current matrix by.


</td></tr>
</tbody></table>
**Returns:**

[Matrix2](./server.matrix2.md)

The current matrix.

