Method SegmentsLengths
SegmentsLengths(IList<BezierPathSegment>, bool, float)
Computes the individual lengths of a segment chain.
Declaration
public static float[] SegmentsLengths(IList<BezierPathSegment> segments, bool closed, float precision = 0.001)
Parameters
Type | Name | Description |
---|---|---|
IList<BezierPathSegment> | segments | The segments on which to compute the lengths |
bool | closed | A boolean indicating if the length of the segment joining the first and last points should be computed |
float | precision | The precision of the lengths computation |
Returns
Type | Description |
---|---|
float[] | An array containing the lenghts of the segments |