Functiondojox.gfx.arc.arcAsBezier

dojo.require("dojox.gfx.arc");
defined in dojox/gfx/arc.js

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.

Usage

function (/*Object*/ last, /*Number*/ rx, /*Number*/ ry, /*Number*/ xRotg, /*Boolean*/ large, /*Boolean*/ sweep, /*Number*/ x, /*Number*/ y) (view source)
parametertypedescription
lastObjecta point-like object as a start of the arc
rxNumbera horizontal radius for the virtual ellipse
ryNumbera vertical radius for the virtual ellipse
xRotgNumbera rotation of an x axis of the virtual ellipse in degrees
largeBooleanwhich part of the ellipse will be used (the larger arc if true)
sweepBooleandirection of the arc (CW if true)
xNumberthe x coordinate of the end point of the arc
yNumberthe y coordinate of the end point of the arc calculate parameters