# Two.ArcSegment

Extends: Two.Path

# Constructor

Argument Description
x The x position of the arc segment.
y The y position of the arc segment.
innerRadius The inner radius value of the arc segment.
outerRadius The outer radius value of the arc segment.
startAngle The start angle of the arc segment in Number.
endAngle The end angle of the arc segment in Number.
resolution The number of vertices used to construct the arc segment.

# Properties

A list of properties that are on every Two.ArcSegment.

# fromObject

Returns: Two.ArcSegment

Argument Description
obj Object notation of a Two.ArcSegment to create a new instance

Create a new Two.ArcSegment from an object notation of a Two.ArcSegment.

nota-bene

Works in conjunction with Two.ArcSegment.toObject

# innerRadius

The size of the inner radius of the arc segment.

# outerRadius

The size of the outer radius of the arc segment.

# startAngle

The angle of one side for the arc segment.

# endAngle

The angle of the other side for the arc segment.

# copy

Argument Description
arcSegment The reference Two.ArcSegment

Copy the properties of one Two.ArcSegment onto another.

# clone

Returns: Two.ArcSegment

Argument Description
parent The parent group or scene to add the clone to.

Create a new instance of Two.ArcSegment with the same properties of the current path.

# toObject

Returns: Object

Return a JSON compatible plain object that represents the path.