기술 자료

Unity Engine

Unity Engine

MakeArc(Vector2, float, float, float)

Approximates a circle arc with up to 4 segments.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

public static BezierPathSegment[] MakeArc(Vector2 center, float startAngleRads, float sweepAngleRads, float radius)

Parameters

center

The center of the arc

startAngleRads

The starting angle of the arc, in radians

sweepAngleRads

The "length" of the arc, in radians

radius

The radius of the arc

Returns

Type

Description

BezierPathSegment[]An array of up to four BezierSegments holding the arc