<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [server](./server.md) &gt; [Matrix3](./server.matrix3.md) &gt; [fromRotation](./server.matrix3.fromrotation.md)

## Matrix3.fromRotation() method

Creates a new `Matrix3` instance from a rotation of identity matrix.

**Signature:**

```typescript
static fromRotation(angle: number): Matrix3;
```

## 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 matrix by.


</td></tr>
</tbody></table>
**Returns:**

[Matrix3](./server.matrix3.md)

A new `Matrix3` instance.

