# Rotate(float)

> Computes a float2x2 matrix representing a counter-clockwise rotation by an angle in radians.

## Definition

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

```csharp
public static float2x2 Rotate(float angle)
```

### Parameters

**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): Rotation angle in radians.

### Returns

| Type                                                                      | Description                      |
| ------------------------------------------------------------------------- | -------------------------------- |
| [float2x2](/engine/6000.5/script-reference/unity/mathematics/float2x2.md) | Returns the 2x2 rotation matrix. |

### Remarks

A positive rotation angle will produce a counter-clockwise rotation and a negative rotation angle will produce a clockwise rotation.
