Lines Matching refs:quad
18 static int doIntersect(SkIntersections& intersections, const SkDQuad& quad, const SkDLine& line,
30 result = intersections.vertical(quad, top, bottom, line[0].fX, flipped);
39 result = intersections.horizontal(quad, left, right, line[0].fY, flipped);
41 intersections.intersect(quad, line);
47 static void testLineIntersect(skiatest::Reporter* reporter, const SkDQuad& quad,
50 pathStr.appendf(" path.moveTo(%1.9g, %1.9g);\n", quad[0].fX, quad[0].fY);
51 pathStr.appendf(" path.quadTo(%1.9g, %1.9g, %1.9g, %1.9g);\n", quad[1].fX,
52 quad[1].fY, quad[2].fX, quad[2].fY);
58 int result = doIntersect(intersections, quad, line, flipped);
62 SkDPoint quadXY = quad.ptAtT(quadT);
72 // find a point on a quad by choosing a t from 0 to 1
74 // verify that intersecting the vertical span and the quad returns t
75 // verify that a vertical span starting at quad[0] intersects at t=0
76 // verify that a vertical span starting at quad[2] intersects at t=1
89 SkDQuad quad;
90 quad.debugSet(q.fPts);
92 int order = reducer.reduce(quad);
97 SkDPoint xy = quad.ptAtT(tIndex / 4.0);
106 testLineIntersect(state.fReporter, quad, line, x, y);
109 testLineIntersect(state.fReporter, quad, line2, x, y);
112 testLineIntersect(state.fReporter, quad, line3, x, y);