<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [server](./server.md) &gt; [Quaternion](./server.quaternion.md) &gt; [rotateZ](./server.quaternion.rotatez.md)

## Quaternion.rotateZ() method

Rotates the quaternion around the z-axis.

**Signature:**

```typescript
rotateZ(angle: number): Quaternion;
```

## 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 to rotate in degrees.


</td></tr>
</tbody></table>
**Returns:**

[Quaternion](./server.quaternion.md)

The current quaternion.

