기술 자료

Unity Engine

Unity Engine

SegmentsLength(IList<BezierPathSegment>, bool, float)

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

Definition

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

Parameters

The curve segments on which to evaluate the length

closed

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

precision

The precision of the length computation

Returns

Type

Description

floatThe combined length of the segment chain