# RotateVector(Vector2)

> Rotate a vector.

## Definition

* **Type:** Method
* **Namespace:** [Unity.U2D.Physics](/engine/6000.6/script-reference/unity/u2d/physics.md)
* **Assembly:** UnityEngine.PhysicsCore2DModule

```csharp
public readonly Vector2 RotateVector(Vector2 vector)
```

### Parameters

**** (\[Vector2]\(/engine/6000.6/script-reference/unityengine/vector2)): The vector to rotate.

### Returns

| Type                                                              | Description                        |
| ----------------------------------------------------------------- | ---------------------------------- |
| [Vector2](/engine/6000.6/script-reference/unityengine/vector2.md) | The result of the vector rotation. |
