Home
last modified time | relevance | path

Searched refs:startAngle (Results 1 – 25 of 113) sorted by relevance

12345

/external/skqp/experimental/canvaskit/htmlcanvas/
Dpath2d.js3 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;
[all …]
/external/skia/modules/canvaskit/htmlcanvas/
Dpath2d.js3 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;
[all …]
/external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/pie/
DPieRenderer.java80 float rad, float startAngle, float sweep) { in drawSegment() argument
99 PointF r1Outer = calculateLineEnd(cx, cy, rad, startAngle); in drawSegment()
100 PointF r1Inner = calculateLineEnd(cx, cy, donutSizePx, startAngle); in drawSegment()
103 PointF r2Outer = calculateLineEnd(cx, cy, rad, startAngle + sweep); in drawSegment()
104 PointF r2Inner = calculateLineEnd(cx, cy, donutSizePx, startAngle + sweep); in drawSegment()
119 startAngle, sweep); in drawSegment()
125 p.arcTo(bounds, startAngle, sweep); in drawSegment()
134 startAngle + sweep, -sweep); in drawSegment()
153 (rad-((rad- donutSizePx)/2)), startAngle + (sweep/2)); in drawSegment()
/external/skqp/src/shaders/gradients/
DSkSweepGradient.cpp44 SkScalar startAngle = 0, in CreateProc() local
49 std::tie(startAngle, endAngle) = angles_from_t_coeff(tBias, tScale); in CreateProc()
54 desc.fTileMode, startAngle, endAngle, in CreateProc()
68 SkScalar startAngle, endAngle; in onMakeColorSpace() local
69 std::tie(startAngle, endAngle) = angles_from_t_coeff(fTBias, fTScale); in onMakeColorSpace()
72 fOrigPos, fColorCount, fTileMode, startAngle, endAngle, in onMakeColorSpace()
DSkGradientShader.cpp834 SkScalar startAngle, in MakeSweep() argument
840 mode, startAngle, endAngle, flags, localMatrix); in MakeSweep()
849 SkScalar startAngle, in MakeSweep() argument
859 if (!SkScalarIsFinite(startAngle) || !SkScalarIsFinite(endAngle) || startAngle > endAngle) { in MakeSweep()
866 if (SkScalarNearlyEqual(startAngle, endAngle, kDegenerateThreshold)) { in MakeSweep()
882 if (startAngle <= 0 && endAngle >= 360) { in MakeSweep()
893 const SkScalar t0 = startAngle / 360, in MakeSweep()
/external/skia/src/shaders/gradients/
DSkSweepGradient.cpp44 SkScalar startAngle = 0, in CreateProc() local
49 std::tie(startAngle, endAngle) = angles_from_t_coeff(tBias, tScale); in CreateProc()
54 desc.fTileMode, startAngle, endAngle, in CreateProc()
68 SkScalar startAngle, endAngle; in onMakeColorSpace() local
69 std::tie(startAngle, endAngle) = angles_from_t_coeff(fTBias, fTScale); in onMakeColorSpace()
72 fOrigPos, fColorCount, fTileMode, startAngle, endAngle, in onMakeColorSpace()
DSkGradientShader.cpp834 SkScalar startAngle, in MakeSweep() argument
840 mode, startAngle, endAngle, flags, localMatrix); in MakeSweep()
849 SkScalar startAngle, in MakeSweep() argument
859 if (!SkScalarIsFinite(startAngle) || !SkScalarIsFinite(endAngle) || startAngle > endAngle) { in MakeSweep()
866 if (SkScalarNearlyEqual(startAngle, endAngle, kDegenerateThreshold)) { in MakeSweep()
882 if (startAngle <= 0 && endAngle >= 360) { in MakeSweep()
893 const SkScalar t0 = startAngle / 360, in MakeSweep()
/external/skia/gm/
Daddarc.cpp41 SkScalar startAngle = rand.nextUScalar1() * 360; in onDraw() local
44 startAngle += fRotate * 360 * speed * sign; in onDraw()
47 path.addArc(r, startAngle, sweepAngle); in onDraw()
247 SkScalar startAngle = startAngles[i % SK_ARRAY_COUNT(startAngles)] * sign; variable
252 html_canvas_arc(&path, 18, 15, 10, startAngle, startAngle + (sweepAngles[j] * sign),
/external/skqp/gm/
Daddarc.cpp41 SkScalar startAngle = rand.nextUScalar1() * 360; in onDraw() local
44 startAngle += fRotate * 360 * speed * sign; in onDraw()
47 path.addArc(r, startAngle, sweepAngle); in onDraw()
247 SkScalar startAngle = startAngles[i % SK_ARRAY_COUNT(startAngles)] * sign; variable
252 html_canvas_arc(&path, 18, 15, 10, startAngle, startAngle + (sweepAngles[j] * sign),
/external/skia/modules/pathkit/
Dexterns.js42 _arc: function(x, y, radius, startAngle, endAngle, ccw) {}, argument
49 _ellipse: function(x, y, radiusX, radiusY, rotation, startAngle, endAngle, ccw) {}, argument
90 PathKit.SkPath.prototype.arc = function(x, y, radius, startAngle, endAngle, ccw) {}; argument
98 PathKit.SkPath.prototype.ellipse = function(x, y, radiusX, radiusY, rotation, startAngle, endAngle,… argument
Dchaining.js52 PathKit.SkPath.prototype.arc = function(x, y, radius, startAngle, endAngle, ccw) { argument
53 this._arc(x, y, radius, startAngle, endAngle, !!ccw);
97 …PathKit.SkPath.prototype.ellipse = function(x, y, radiusX, radiusY, rotation, startAngle, endAngle… argument
98 this._ellipse(x, y, radiusX, radiusY, rotation, startAngle, endAngle, !!ccw);
Dpathkit_wasm_bindings.cpp325 SkScalar startAngle, SkScalar endAngle, bool ccw) { in ApplyAddArc() argument
328 const auto sweep = SkRadiansToDegrees(endAngle - startAngle) - 360 * ccw; in ApplyAddArc()
329 temp.addArc(bounds, SkRadiansToDegrees(startAngle), sweep); in ApplyAddArc()
334 SkScalar rotation, SkScalar startAngle, SkScalar endAngle, bool ccw) { in ApplyEllipse() argument
339 const auto sweep = SkRadiansToDegrees(endAngle - startAngle) - (360 * ccw); in ApplyEllipse()
340 temp.addArc(bounds, SkRadiansToDegrees(startAngle), sweep); in ApplyEllipse()
/external/skqp/modules/pathkit/
Dexterns.js42 _arc: function(x, y, radius, startAngle, endAngle, ccw) {}, argument
49 _ellipse: function(x, y, radiusX, radiusY, rotation, startAngle, endAngle, ccw) {}, argument
90 PathKit.SkPath.prototype.arc = function(x, y, radius, startAngle, endAngle, ccw) {}; argument
98 PathKit.SkPath.prototype.ellipse = function(x, y, radiusX, radiusY, rotation, startAngle, endAngle,… argument
Dchaining.js52 PathKit.SkPath.prototype.arc = function(x, y, radius, startAngle, endAngle, ccw) { argument
53 this._arc(x, y, radius, startAngle, endAngle, !!ccw);
97 …PathKit.SkPath.prototype.ellipse = function(x, y, radiusX, radiusY, rotation, startAngle, endAngle… argument
98 this._ellipse(x, y, radiusX, radiusY, rotation, startAngle, endAngle, !!ccw);
Dpathkit_wasm_bindings.cpp325 SkScalar startAngle, SkScalar endAngle, bool ccw) { in ApplyAddArc() argument
328 const auto sweep = SkRadiansToDegrees(endAngle - startAngle) - 360 * ccw; in ApplyAddArc()
329 temp.addArc(bounds, SkRadiansToDegrees(startAngle), sweep); in ApplyAddArc()
334 SkScalar rotation, SkScalar startAngle, SkScalar endAngle, bool ccw) { in ApplyEllipse() argument
339 const auto sweep = SkRadiansToDegrees(endAngle - startAngle) - (360 * ccw); in ApplyEllipse()
340 temp.addArc(bounds, SkRadiansToDegrees(startAngle), sweep); in ApplyEllipse()
/external/pdfium/xfa/fxfa/parser/
Dcxfa_box.cpp259 Optional<int32_t> startAngle = GetStartAngle(); in GetPathArcOrRounded() local
261 if (!startAngle && !sweepAngle) { in GetPathArcOrRounded()
267 -startAngle.value_or(0) * FX_PI / 180.0f, in GetPathArcOrRounded()
327 float startAngle = 0, sweepAngle = 360; in StrokeArcOrRounded() local
328 startAngle = startAngle * FX_PI / 180.0f; in StrokeArcOrRounded()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowPath.java383 protected void arcTo(RectF oval, float startAngle, float sweepAngle) { in arcTo() argument
384 arcTo(oval.left, oval.top, oval.right, oval.bottom, startAngle, sweepAngle, false); in arcTo()
388 protected void arcTo(RectF oval, float startAngle, float sweepAngle, boolean forceMoveTo) { in arcTo() argument
389 arcTo(oval.left, oval.top, oval.right, oval.bottom, startAngle, sweepAngle, forceMoveTo); in arcTo()
398 float startAngle, in arcTo() argument
404 left, top, right - left, bottom - top, -startAngle, -sweepAngle, Arc2D.OPEN); in arcTo()
457 float left, float top, float right, float bottom, float startAngle, float sweepAngle) { in addArc() argument
460 left, top, right - left, bottom - top, -startAngle, -sweepAngle, Arc2D.OPEN), in addArc()
DShadowCanvas.java196 RectF oval, float startAngle, float sweepAngle, boolean useCenter, Paint paint) { in drawArc() argument
197 arcPaintEvents.add(new ArcPaintHistoryEvent(oval, startAngle, sweepAngle, useCenter, paint)); in drawArc()
446 public final float startAngle; field in ShadowCanvas.ArcPaintHistoryEvent
451 public ArcPaintHistoryEvent(RectF oval, float startAngle, float sweepAngle, boolean useCenter, in ArcPaintHistoryEvent() argument
454 this.startAngle = startAngle; in ArcPaintHistoryEvent()
/external/pdfium/xfa/fxgraphics/
Dcxfa_gepath.h33 float startAngle,
41 float startAngle,
/external/proguard/src/proguard/gui/splash/
DOverrideGraphics2D.java274 public void drawArc(int x, int y, int width, int height, int startAngle, int arcAngle) in drawArc() argument
276 graphics.drawArc(x, y, width, height, startAngle, arcAngle); in drawArc()
414 public void fillArc(int x, int y, int width, int height, int startAngle, int arcAngle) in fillArc() argument
416 graphics.fillArc(x, y, width, height, startAngle, arcAngle); in fillArc()
/external/pdfium/fxjs/xfa/
Dcjx_arc.h21 JS_PROP(startAngle);
/external/skia/src/core/
DSkPath.cpp1091 static bool arc_is_lone_point(const SkRect& oval, SkScalar startAngle, SkScalar sweepAngle, in arc_is_lone_point() argument
1093 if (0 == sweepAngle && (0 == startAngle || SkIntToScalar(360) == startAngle)) { in arc_is_lone_point()
1114 static void angles_to_unit_vectors(SkScalar startAngle, SkScalar sweepAngle, in angles_to_unit_vectors() argument
1116 startV->fY = SkScalarSinCos(SkDegreesToRadians(startAngle), &startV->fX); in angles_to_unit_vectors()
1117 stopV->fY = SkScalarSinCos(SkDegreesToRadians(startAngle + sweepAngle), &stopV->fX); in angles_to_unit_vectors()
1130 SkScalar stopRad = SkDegreesToRadians(startAngle + sweepAngle); in angles_to_unit_vectors()
1332 SkPath& SkPath::arcTo(const SkRect& oval, SkScalar startAngle, SkScalar sweepAngle, in arcTo() argument
1343 if (arc_is_lone_point(oval, startAngle, sweepAngle, &lonePt)) { in arcTo()
1349 angles_to_unit_vectors(startAngle, sweepAngle, &startV, &stopV, &dir); in arcTo()
1371 SkScalar endAngle = SkDegreesToRadians(startAngle + sweepAngle); in arcTo()
[all …]
/external/skqp/src/core/
DSkPath.cpp1091 static bool arc_is_lone_point(const SkRect& oval, SkScalar startAngle, SkScalar sweepAngle, in arc_is_lone_point() argument
1093 if (0 == sweepAngle && (0 == startAngle || SkIntToScalar(360) == startAngle)) { in arc_is_lone_point()
1114 static void angles_to_unit_vectors(SkScalar startAngle, SkScalar sweepAngle, in angles_to_unit_vectors() argument
1116 startV->fY = SkScalarSinCos(SkDegreesToRadians(startAngle), &startV->fX); in angles_to_unit_vectors()
1117 stopV->fY = SkScalarSinCos(SkDegreesToRadians(startAngle + sweepAngle), &stopV->fX); in angles_to_unit_vectors()
1130 SkScalar stopRad = SkDegreesToRadians(startAngle + sweepAngle); in angles_to_unit_vectors()
1332 SkPath& SkPath::arcTo(const SkRect& oval, SkScalar startAngle, SkScalar sweepAngle, in arcTo() argument
1343 if (arc_is_lone_point(oval, startAngle, sweepAngle, &lonePt)) { in arcTo()
1349 angles_to_unit_vectors(startAngle, sweepAngle, &startV, &stopV, &dir); in arcTo()
1371 SkScalar endAngle = SkDegreesToRadians(startAngle + sweepAngle); in arcTo()
[all …]
/external/skia/modules/canvaskit/
Dinterface.js126 CanvasKit.SkPath.prototype.addArc = function(oval, startAngle, sweepAngle) { argument
129 this._addArc(oval, startAngle, sweepAngle);
230 CanvasKit.SkPath.prototype.arc = function(x, y, radius, startAngle, endAngle, ccw) { argument
234 var sweep = radiansToDegrees(endAngle - startAngle) - (360 * !!ccw);
236 temp.addArc(bounds, radiansToDegrees(startAngle), sweep);
/external/skqp/samplecode/
DSamplePathFuzz.cpp376 SkScalar startAngle = makeAngle(); in makePath() local
378 path.addArc(oval, startAngle, sweepAngle); in makePath()
526 SkScalar startAngle = makeAngle(); in makePath() local
529 path.arcTo(oval, startAngle, sweepAngle, forceMoveTo); in makePath()

12345