文档

Unity Engine

Unity Engine

SegmentLength(BezierSegment, float)

Computes the length of a single curve segment.
阅读时间1 分钟最后更新于 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