<!-- 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; [fromTranslation](./server.matrix3.fromtranslation.md)

## Matrix3.fromTranslation() method

Creates a new `Matrix3` instance from a translation of identity matrix. This is used only when working with two-dimensional homogeneous coordinates, which is why the `translation` parameter is a `Vector2`<!-- -->.

**Signature:**

```typescript
static fromTranslation(translation: Vector2): Matrix3;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

translation


</td><td>

[Vector2](./server.vector2.md)


</td><td>

The translation of the matrix.


</td></tr>
</tbody></table>
**Returns:**

[Matrix3](./server.matrix3.md)

A new `Matrix3` instance.

