SegmentsLengths(IList<BezierPathSegment>, bool, float)
Computes the individual lengths of a segment chain.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Method
- Namespace: Unity.VectorGraphics
- Assembly: UnityEngine.VectorGraphicsModule
public static float[] SegmentsLengths(IList<BezierPathSegment> segments, bool closed, float precision = 0.001)
Parameters
The segments on which to compute the lengths
A boolean indicating if the length of the segment joining the first and last points should be computed
The precision of the lengths computation
Returns
Type | Description |
|---|---|
| float[] | An array containing the lenghts of the segments |