# Arc

``public class Arc: Shape``

Arc is a concrete subclass of Shape that has a special initialzer that creates an arc whose shape is defined by rotating around a specified point.

• ` init(center:radius:start:end:) `

Creates an arc, whose edge is always drawn on the shorter circumference.

``````let a = Arc(center: canvas.center,radius: 50, start: M_PI, end: 2*M_PI)
``````

#### Declaration

Swift

``public convenience init(center: Point, radius: Double, start: Double, end: Double)``

#### Parameters

 ` center ` The center-point of the arc ` radius ` The radius of the arc ` start ` The angle (in radians) that determines the starting point of the arc, measured from the x-axis in the current user space. ` end ` The angle (in radians) that determines the ending point of the arc, measured from the x-axis in the current user space.
• ` init(center:radius:start:end:clockwise:) `
``````Creates an arc, whose edge is drawn based on the input for `clockwise`.
``````
``````let a = Arc(center: canvas.center,radius: 50, start: M_PI, end: 2*M_PI, clockwise: clockwise: false)
``````

#### Declaration

Swift

``public init(center: Point, radius: Double, start: Double, end: Double, clockwise: Bool)``

#### Parameters

 ` center ` The center-point of the arc ` radius ` The radius of the arc ` start ` The angle (in radians) that determines the starting point of the arc, measured from the x-axis in the current user space. ` end ` The angle (in radians) that determines the ending point of the arc, measured from the x-axis in the current user space. /// ` clockwise ` If true, the arc draws clockwise from start to end (counter clockwise if false)