Lines Matching refs:fPts
220 SkPoint fPts[N]; member in ArcToView
227 fPts[i].fX = 20 + rand.nextUScalar1() * 640; in ArcToView()
228 fPts[i].fY = 20 + rand.nextUScalar1() * 480; in ArcToView()
271 path->moveTo(fPts[0]); in makePath()
273 path->lineTo(fPts[i]); in makePath()
281 canvas->drawPoints(SkCanvas::kPoints_PointMode, N, fPts, fPtsPaint); in onDrawContent()
297 fPts[index] = click->fCurr; in onClick()
307 if (r.intersects(SkRect::MakeXYWH(fPts[i].fX, fPts[i].fY, 1, 1))) { in onFindClickHandler()
332 SkPoint fPts[N]; member in FatStroke
339 fPts[i].fX = 20 + rand.nextUScalar1() * 640; in FatStroke()
340 fPts[i].fY = 20 + rand.nextUScalar1() * 480; in FatStroke()
393 path->moveTo(fPts[0]); in makePath()
395 path->lineTo(fPts[i]); in makePath()
423 canvas->drawPoints(SkCanvas::kPoints_PointMode, N, fPts, fPtsPaint); in onDrawContent()
430 fPts[index] = click->fCurr; in onClick()
440 if (r.intersects(SkRect::MakeXYWH(fPts[i].fX, fPts[i].fY, 1, 1))) { in onFindClickHandler()
480 SkPoint fPts[N]; member in CubicCurve
485 fPts[i].fX = 20 + rand.nextUScalar1() * 640; in CubicCurve()
486 fPts[i].fY = 20 + rand.nextUScalar1() * 480; in CubicCurve()
505 path.moveTo(fPts[0]); in onDrawContent()
506 path.cubicTo(fPts[1], fPts[2], fPts[3]); in onDrawContent()
514 int n = compute_parallel_to_base(fPts, t); in onDrawContent()
518 SkEvalCubicAt(fPts, t[i], &loc, &tan, nullptr); in onDrawContent()
523 canvas->drawLine(fPts[0], fPts[3], paint); in onDrawContent()
527 SkEvalCubicAt(fPts, 0.5f, &loc, nullptr, nullptr); in onDrawContent()
531 SkEvalCubicAt(fPts, 1.0f/3, &loc, nullptr, nullptr); in onDrawContent()
533 SkEvalCubicAt(fPts, 2.0f/3, &loc, nullptr, nullptr); in onDrawContent()
543 for (SkPoint p : fPts) { in onDrawContent()
553 fPts[index] = click->fCurr; in onClick()
563 if (r.intersects(SkRect::MakeXYWH(fPts[i].fX, fPts[i].fY, 1, 1))) { in onFindClickHandler()
601 SkPoint fPts[N]; member in CubicCurve2
602 SkPoint* fQuad = fPts + 4;
609 fPts[0] = { 90, 300 }; in CubicCurve2()
610 fPts[1] = { 30, 60 }; in CubicCurve2()
611 fPts[2] = { 250, 30 }; in CubicCurve2()
612 fPts[3] = { 350, 200 }; in CubicCurve2()
614 fQuad[0] = fPts[0] + SkVector{ 300, 0}; in CubicCurve2()
615 fQuad[1] = fPts[1] + SkVector{ 300, 0}; in CubicCurve2()
616 fQuad[2] = fPts[2] + SkVector{ 300, 0}; in CubicCurve2()
673 canvas->drawLine(fPts[0], fPts[3], paint); in showFlattness()
684 SkVector v0 = (fPts[0] - fPts[1] - fPts[1] + fPts[2]) * fScale; in showFlattness()
685 SkVector v1 = (fPts[1] - fPts[2] - fPts[2] + fPts[3]) * fScale; in showFlattness()
690 int n = find_max_deviation_cubic(fPts, ts); in showFlattness()
692 SkEvalCubicAt(fPts, ts[0], &anchor, nullptr, nullptr); in showFlattness()
696 SkEvalCubicAt(fPts, ts[1], &anchor, nullptr, nullptr); in showFlattness()
711 path.moveTo(fPts[0]); in onDrawContent()
712 path.cubicTo(fPts[1], fPts[2], fPts[3]); in onDrawContent()
721 this->showFrame(canvas, fPts, 3, paint); in onDrawContent()
736 for (SkPoint p : fPts) { in onDrawContent()
742 int n = SkFindCubicInflections(fPts, ts); in onDrawContent()
745 SkEvalCubicAt(fPts, ts[i], &p, nullptr, nullptr); in onDrawContent()
756 fPts[index] = click->fCurr; in onClick()
766 if (r.intersects(SkRect::MakeXYWH(fPts[i].fX, fPts[i].fY, 1, 1))) { in onFindClickHandler()