Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


MakeArc(Vector2, float, float, float)

Approximates a circle arc with up to 4 segments.
Read time 1 minuteLast updated 5 days ago

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