# RotateZ(float)

> Returns a quaternion that rotates around the z-axis by a given number of radians.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Mathematics](/engine/6000.6/script-reference/unity/mathematics.md)
* **Assembly:** UnityEngine.MathematicsModule

```csharp
public static quaternion RotateZ(float angle)
```

### Parameters

**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The clockwise rotation angle when looking along the z-axis towards the origin in radians.

### Returns

| Type                                                                          | Description                                               |
| ----------------------------------------------------------------------------- | --------------------------------------------------------- |
| [quaternion](/engine/6000.6/script-reference/unity/mathematics/quaternion.md) | The quaternion representing a rotation around the z-axis. |
