# BBox.GetEdgeDistance

```csharp
float GetEdgeDistance(Vector3 localPos)
```

Calculates the shortest distance from the specified local position to the nearest edge of the shape.

### Parameters

- `localPos` (`Vector3`)

### Returns

`float`

Declared in [BBox](/api/BBox).
Assembly: `Sandbox.System`.
