# 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. |
# fromObject
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.
# copy
Two.ArcSegment.copy
| Argument | Description |
|---|---|
| arcSegment | The reference Two.ArcSegment |
Copy the properties of one Two.ArcSegment onto another.
# clone
Two.ArcSegment.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
Two.ArcSegment.toObject
Returns: Object
Return a JSON compatible plain object that represents the path.