Lines Matching defs:pts
7 SkPath MakeCubicSplineInterpolation(const SkPoint* pts, size_t N) {
15 path.moveTo(pts[0]);
16 path.lineTo(pts[1]);
28 s[0].r = {pts[0].x() + 2 * pts[1].x(), pts[0].y() + 2 * pts[1].y()};
33 s[i].r = {4 * pts[i].x() + 2 * pts[i + 1].x(), 4 * pts[i].y() + 2 * pts[i + 1].y()};
38 s[n - 1].r = {8 * pts[n - 1].x() + pts[N - 1].x(), 8 * pts[n - 1].y() + pts[N - 1].y()};
51 path.moveTo(pts[0]);
53 SkPoint q = {2 * pts[i + 1].x() - s[i + 1].p.fX, 2 * pts[i + 1].y() - s[i + 1].p.fY};
54 path.cubicTo(s[i].p, q, pts[i + 1]);
56 SkPoint q = {0.5f * (pts[N - 1].x() + s[n - 1].p.x()),
57 0.5f * (pts[N - 1].y() + s[n - 1].p.y())};
58 path.cubicTo(s[n - 1].p, q, pts[n]);
71 SkPoint pts[] = {
76 canvas->drawPath(MakeCubicSplineInterpolation(pts, SK_ARRAY_COUNT(pts)), p);
80 canvas->drawPoints(SkCanvas::kPoints_PointMode, SK_ARRAY_COUNT(pts), pts, p);