• Home
  • Raw
  • Download

Lines Matching refs:fPts

214     SkPoint fPts[N];  member in ArcToView
221 fPts[i].fX = 20 + rand.nextUScalar1() * 640; in ArcToView()
222 fPts[i].fY = 20 + rand.nextUScalar1() * 480; in ArcToView()
260 path->moveTo(fPts[0]); in makePath()
262 path->lineTo(fPts[i]); in makePath()
270 canvas->drawPoints(SkCanvas::kPoints_PointMode, N, fPts, fPtsPaint); in onDrawContent()
286 if (r.intersects(SkRect::MakeXYWH(fPts[i].fX, fPts[i].fY, 1, 1))) { in onFindClickHandler()
288 fPts[i] = c->fCurr; in onFindClickHandler()
312 SkPoint fPts[N]; member in FatStroke
319 fPts[i].fX = 20 + rand.nextUScalar1() * 640; in FatStroke()
320 fPts[i].fY = 20 + rand.nextUScalar1() * 480; in FatStroke()
369 path->moveTo(fPts[0]); in makePath()
372 path->quadTo(fPts[i], (fPts[i+1] + fPts[i]) * 0.5f); in makePath()
374 path->quadTo(fPts[N-2], fPts[N-1]); in makePath()
377 path->lineTo(fPts[i]); in makePath()
406 canvas->drawPoints(SkCanvas::kPoints_PointMode, N, fPts, fPtsPaint); in onDrawContent()
413 if (r.intersects(SkRect::MakeXYWH(fPts[i].fX, fPts[i].fY, 1, 1))) { in onFindClickHandler()
415 fPts[i] = c->fCurr; in onFindClickHandler()
454 SkPoint fPts[N]; member in CubicCurve
459 fPts[i].fX = 20 + rand.nextUScalar1() * 640; in CubicCurve()
460 fPts[i].fY = 20 + rand.nextUScalar1() * 480; in CubicCurve()
473 path.moveTo(fPts[0]); in onDrawContent()
474 path.cubicTo(fPts[1], fPts[2], fPts[3]); in onDrawContent()
482 int n = compute_parallel_to_base(fPts, t); in onDrawContent()
486 SkEvalCubicAt(fPts, t[i], &loc, &tan, nullptr); in onDrawContent()
491 canvas->drawLine(fPts[0], fPts[3], paint); in onDrawContent()
495 SkEvalCubicAt(fPts, 0.5f, &loc, nullptr, nullptr); in onDrawContent()
499 SkEvalCubicAt(fPts, 1.0f/3, &loc, nullptr, nullptr); in onDrawContent()
501 SkEvalCubicAt(fPts, 2.0f/3, &loc, nullptr, nullptr); in onDrawContent()
511 for (SkPoint p : fPts) { in onDrawContent()
521 if (r.intersects(SkRect::MakeXYWH(fPts[i].fX, fPts[i].fY, 1, 1))) { in onFindClickHandler()
523 fPts[i] = c->fCurr; in onFindClickHandler()
560 SkPoint fPts[N]; member in CubicCurve2
561 SkPoint* fQuad = fPts + 4;
569 fPts[0] = { 90, 300 }; in CubicCurve2()
570 fPts[1] = { 30, 60 }; in CubicCurve2()
571 fPts[2] = { 250, 30 }; in CubicCurve2()
572 fPts[3] = { 350, 200 }; in CubicCurve2()
574 fQuad[0] = fPts[0] + SkVector{ 300, 0}; in CubicCurve2()
575 fQuad[1] = fPts[1] + SkVector{ 300, 0}; in CubicCurve2()
576 fQuad[2] = fPts[2] + SkVector{ 300, 0}; in CubicCurve2()
634 canvas->drawLine(fPts[0], fPts[3], paint); in showFlattness()
645 SkVector v0 = (fPts[0] - fPts[1] - fPts[1] + fPts[2]) * fScale; in showFlattness()
646 SkVector v1 = (fPts[1] - fPts[2] - fPts[2] + fPts[3]) * fScale; in showFlattness()
651 int n = find_max_deviation_cubic(fPts, ts); in showFlattness()
653 SkEvalCubicAt(fPts, ts[0], &anchor, nullptr, nullptr); in showFlattness()
657 SkEvalCubicAt(fPts, ts[1], &anchor, nullptr, nullptr); in showFlattness()
675 SkPoint p0 = SkEvalQuadAt(&fPts[0], fT), in showInnerQuads()
676 p1 = SkEvalQuadAt(&fPts[1], fT), in showInnerQuads()
679 draw_quad(fPts[0], fPts[1], fPts[2], SK_ColorRED); in showInnerQuads()
682 draw_quad(fPts[1], fPts[2], fPts[3], SK_ColorBLUE); in showInnerQuads()
699 path.moveTo(fPts[0]); in onDrawContent()
700 path.cubicTo(fPts[1], fPts[2], fPts[3]); in onDrawContent()
709 this->showFrame(canvas, fPts, 3, paint); in onDrawContent()
728 canvas->drawPath(SkPathBuilder().addPolygon(fPts, 4, false).detach(), paint); in onDrawContent()
731 for (SkPoint p : fPts) { in onDrawContent()
737 int n = SkFindCubicInflections(fPts, ts); in onDrawContent()
740 SkEvalCubicAt(fPts, ts[i], &p, nullptr, nullptr); in onDrawContent()
751 if (r.intersects(SkRect::MakeXYWH(fPts[i].fX, fPts[i].fY, 1, 1))) { in onFindClickHandler()
753 fPts[i] = c->fCurr; in onFindClickHandler()