# DistanceToPolyLine(params Vector3[])

> Returns the distance in pixels from the mouse pointer to a polyline.

## Definition

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

## DistanceToPolyLine(Vector3\[])

```csharp
public static float DistanceToPolyLine(params Vector3[] points)
```

### Parameters

**** (\[Vector3\[]]\(/engine/6000.5/script-reference/unityengine/vector3)):&#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 multi segment line that goes through the given world space points.

Uses the current camera to determine the distance.

Additional Resources: [HandleUtility.DistanceToLine](/engine/6000.5/script-reference/unityeditor/handleutility/distancetoline.md).
