# SegmentsLength(IList<BezierPathSegment>, bool, float)

> Computes the combined length of a segment chain.

## Definition

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

```csharp
public static float SegmentsLength(IList<BezierPathSegment> segments, bool closed, float precision = 0.001)
```

### Parameters

**** (\[IList\<BezierPathSegment>]\(https\://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1)): The curve segments on which to evaluate the length**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): A boolean indicating if the length of the segment joining the first and last points should be computed**** (\[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 combined length of the segment chain |
