<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [server](./server.md) &gt; [Matrix4](./server.matrix4.md) &gt; [fromQuaternion](./server.matrix4.fromquaternion.md)

## Matrix4.fromQuaternion() method

Creates a new `Matrix4` instance from a `Quaternion` object.

**Signature:**

```typescript
static fromQuaternion(quaternion: Quaternion): Matrix4;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

quaternion


</td><td>

[Quaternion](./server.quaternion.md)


</td><td>

The `Quaternion` object to create the `Matrix4` instance from.


</td></tr>
</tbody></table>
**Returns:**

[Matrix4](./server.matrix4.md)

A new `Matrix4` instance.

