Method MakeArc
MakeArc(Vector2, float, float, float)
Approximates a circle arc with up to 4 segments.
Declaration
public static BezierPathSegment[] MakeArc(Vector2 center, float startAngleRads, float sweepAngleRads, float radius)
Parameters
Type | Name | Description |
---|---|---|
Vector2 | center | The center of the arc |
float | startAngleRads | The starting angle of the arc, in radians |
float | sweepAngleRads | The "length" of the arc, in radians |
float | radius | The radius of the arc |
Returns
Type | Description |
---|---|
BezierPathSegment[] | An array of up to four BezierSegments holding the arc |