Lines Matching defs:line
18 static int doIntersect(SkIntersections& intersections, const SkDQuad& quad, const SkDLine& line,
22 if (line[0].fX == line[1].fX) {
23 double top = line[0].fY;
24 double bottom = line[1].fY;
30 result = intersections.vertical(quad, top, bottom, line[0].fX, flipped);
31 } else if (line[0].fY == line[1].fY) {
32 double left = line[0].fX;
33 double right = line[1].fX;
39 result = intersections.horizontal(quad, left, right, line[0].fY, flipped);
41 intersections.intersect(quad, line);
48 const SkDLine& line, const double x, const double y) {
53 pathStr.appendf(" path.moveTo(%1.9g, %1.9g);\n", line[0].fX, line[0].fY);
54 pathStr.appendf(" path.lineTo(%1.9g, %1.9g);\n", line[1].fX, line[1].fY);
58 int result = doIntersect(intersections, quad, line, flipped);
64 SkDPoint lineXY = line.ptAtT(lineT);
105 SkDLine line = {{{x - h, y - v}, {x, y}}};
106 testLineIntersect(state.fReporter, quad, line, x, y);