Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SegmentLength(BezierSegment, float)

Computes the length of a single curve segment.
Read time 1 minuteLast updated 6 days ago

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