# Vector3.InverseLerp

```csharp
static float InverseLerp(Vector3 pos, Vector3 a, Vector3 b, bool clamp = True)
```

Given a position, and two other positions, calculate the inverse lerp position between those

### Parameters

- `pos` (`Vector3`)
- `a` (`Vector3`)
- `b` (`Vector3`)
- `clamp` (`bool`), default `True`

### Returns

`float`

Declared in [Vector3](/api/Vector3).
Assembly: `Sandbox.System`.
