# DistanceToDisc(Vector3, Vector3, float)

> Returns the distance in pixels from the mouse pointer to a 3D disc.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor](/engine/6000.3/script-reference/unityeditor.md)
* **Assembly:** UnityEditor

```csharp
public static float DistanceToDisc(Vector3 center, Vector3 normal, float radius)
```

### Parameters

**** (\[Vector3]\(/engine/6000.3/script-reference/unityengine/vector3)): **** (\[Vector3]\(/engine/6000.3/script-reference/unityengine/vector3)): **** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)):&#x20;

### Returns

| Type                                                          | Description |
| ------------------------------------------------------------- | ----------- |
| [float](https://learn.microsoft.com/dotnet/api/system.single) |             |

### Remarks

Calculates the screen space distance from the mouse pointer to the disc (circle) at given world space `position` with the given `radius` and `normal`.

Uses the current camera to determine the distance.

Additional Resources: [HandleUtility.DistanceToCircle](/engine/6000.3/script-reference/unityeditor/handleutility/distancetocircle.md).
