# SegmentLength(BezierSegment, float)

> Computes the length of a single curve segment.

## Definition

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

```csharp
public static float SegmentLength(BezierSegment segment, float precision = 0.001)
```

### Parameters

**** (\[BezierSegment]\(/engine/6000.6/script-reference/unity/vectorgraphics/beziersegment)): The curve segment on which to evaluate the length**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The precision of the length computation

### Returns

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