This module contains the core graphics Arc functions.
See the dojox/gfx/arc reference documentation for more information.
an object with properties of an arc around a unit circle from 0 to pi/4
calculates an arc as a series of Bezier curves given the last point and a standard set of SVG arc parameters, it returns an array of arrays of parameters to form a series of absolute Bezier curves.
| Parameter | Type | Description |
|---|---|---|
| last | Object | a point-like object as a start of the arc |
| rx | Number | a horizontal radius for the virtual ellipse |
| ry | Number | a vertical radius for the virtual ellipse |
| xRotg | Number | a rotation of an x axis of the virtual ellipse in degrees |
| large | Boolean | which part of the ellipse will be used (the larger arc if true) |
| sweep | Boolean | direction of the arc (CW if true) |
| x | Number | the x coordinate of the end point of the arc |
| y | Number | the y coordinate of the end point of the arc |
return a start point, 1st and 2nd control points, and an end point of a an arc, which is reflected on the x axis
| Parameter | Type | Description |
|---|---|---|
| alpha | Number | angle in radians, the arc will be 2 * angle size |