Lines Matching refs:startAngle
3 function arc(skpath, x, y, radius, startAngle, endAngle, ccw) { argument
6 ellipse(skpath, x, y, radius, radius, 0, startAngle, endAngle, ccw);
43 function _ellipseHelper(skpath, x, y, radiusX, radiusY, startAngle, endAngle) { argument
44 var sweepDegrees = radiansToDegrees(endAngle - startAngle);
45 var startDegrees = radiansToDegrees(startAngle);
61 startAngle, endAngle, ccw) { argument
62 if (!allAreFinite([x, y, radiusX, radiusY, rotation, startAngle, endAngle])) {
71 var newStartAngle = startAngle % tao;
75 var delta = newStartAngle - startAngle;
76 startAngle = newStartAngle;
80 if (!ccw && (endAngle - startAngle) >= tao) {
82 endAngle = startAngle + tao;
83 } else if (ccw && (startAngle - endAngle) >= tao) {
85 endAngle = startAngle - tao;
86 } else if (!ccw && startAngle > endAngle) {
87 endAngle = startAngle + (tao - (startAngle - endAngle) % tao);
88 } else if (ccw && startAngle < endAngle) {
89 endAngle = startAngle - (tao - (endAngle - startAngle) % tao);
98 _ellipseHelper(skpath, x, y, radiusX, radiusY, startAngle, endAngle);
104 _ellipseHelper(skpath, x, y, radiusX, radiusY, startAngle, endAngle);
169 this.arc = function(x, y, radius, startAngle, endAngle, ccw) { argument
170 arc(this._path, x, y, radius, startAngle, endAngle, ccw);
186 startAngle, endAngle, ccw) { argument
188 startAngle, endAngle, ccw);