# Create(Vector2, Vector2)

> Create a Segment.

## Definition

* **Type:** Method
* **Namespace:** [Unity.U2D.Physics](/engine/6000.5/script-reference/unity/u2d/physics.md)
* **Assembly:** UnityEngine.PhysicsCore2DModule

```csharp
public static SegmentGeometry Create(Vector2 point1, Vector2 point2)
```

### Parameters

**** (\[Vector2]\(/engine/6000.5/script-reference/unityengine/vector2)): The first local point.**** (\[Vector2]\(/engine/6000.5/script-reference/unityengine/vector2)): The second local point.

### Returns

| Type                                                                                    | Description           |
| --------------------------------------------------------------------------------------- | --------------------- |
| [SegmentGeometry](/engine/6000.5/script-reference/unity/u2d/physics/segmentgeometry.md) | The created geometry. |
