Lines Matching defs:line
14 static int doIntersect(SkIntersections& intersections, const SkDQuad& quad, const SkDLine& line,
18 if (line[0].fX == line[1].fX) {
19 double top = line[0].fY;
20 double bottom = line[1].fY;
25 result = intersections.vertical(quad, top, bottom, line[0].fX, flipped);
26 } else if (line[0].fY == line[1].fY) {
27 double left = line[0].fX;
28 double right = line[1].fX;
33 result = intersections.horizontal(quad, left, right, line[0].fY, flipped);
35 intersections.intersect(quad, line);
42 const SkDLine& line, const double x, const double y) {
49 str += sprintf(str, " path.moveTo(%1.9g, %1.9g);\n", line[0].fX, line[0].fY);
50 str += sprintf(str, " path.lineTo(%1.9g, %1.9g);\n", line[1].fX, line[1].fY);
54 int result = doIntersect(intersections, quad, line, flipped);
60 SkDPoint lineXY = line.ptAtT(lineT);
100 SkDLine line = {{{x - h, y - v}, {x, y}}};
101 testLineIntersect(state.fReporter, quad, line, x, y);