기술 자료

Unity Engine

Unity Engine

SegmentLength(BezierSegment, float)

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

Definition

public static float SegmentLength(BezierSegment segment, float precision = 0.001)

Parameters

The curve segment on which to evaluate the length

precision

The precision of the length computation

Returns

Type

Description

floatThe length of the segment