기술 자료

Unity Engine

Unity Engine

SegmentsLengths(IList<BezierPathSegment>, bool, float)

Computes the individual lengths of a segment chain.
읽는 시간 1분최근 업데이트: 한 달 전

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