# MakeLine(Vector2, Vector2)

> Builds a line segment.

## Definition

* **Type:** Method
* **Namespace:** [Unity.VectorGraphics](/engine/6000.6/script-reference/unity/vectorgraphics.md)
* **Assembly:** UnityEngine.VectorGraphicsModule

```csharp
public static BezierSegment MakeLine(Vector2 from, Vector2 to)
```

### Parameters

**** (\[Vector2]\(/engine/6000.6/script-reference/unityengine/vector2)): The starting position of the line segment**** (\[Vector2]\(/engine/6000.6/script-reference/unityengine/vector2)): The ending position of the line segment

### Returns

| Type                                                                                   | Description                   |
| -------------------------------------------------------------------------------------- | ----------------------------- |
| [BezierSegment](/engine/6000.6/script-reference/unity/vectorgraphics/beziersegment.md) | A straight line BezierSegment |

### Remarks

The control points are spaced out equally to maintain a constant speed on t
