# Vector3.Slerp

```csharp
static Vector3 Slerp(Vector3 a, Vector3 b, float frac, bool clamp = True)
```

Performs spherical linear interpolation (Slerp) between two vectors.

### Parameters

- `a` (`Vector3`): Starting vector (A).
- `b` (`Vector3`): Target vector (B).
- `frac` (`float`): Interpolation fraction: 0 returns A, 1 returns B, and values in between provide intermediate results along the spherical path.
- `clamp` (`bool`), default `True`: If true, clamps the fraction between 0 and 1.

### Returns

`Vector3`: Interpolated vector along the spherical path.

Declared in [Vector3](/api/Vector3).
Assembly: `Sandbox.System`.
