Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SegmentsLengths(IList<BezierPathSegment>, bool, float)

Computes the individual lengths of a segment chain.
Read time 1 minuteLast updated 10 days ago

Definition

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

Parameters

The segments on which to compute the lengths

closed

A boolean indicating if the length of the segment joining the first and last points should be computed

precision

The precision of the lengths computation

Returns

Type

Description

float[]An array containing the lenghts of the segments