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

> Computes the individual lengths of a segment chain.

## Definition

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

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

### Parameters

**** (\[IList\<BezierPathSegment>]\(https\://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1)): The segments on which to compute the lengths**** (\[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 lengths computation

### Returns

| Type                                                              | Description                                     |
| ----------------------------------------------------------------- | ----------------------------------------------- |
| [float\[\]](https://learn.microsoft.com/dotnet/api/system.single) | An array containing the lenghts of the segments |
