Home | History | Annotate | Download | only in tests

Lines Matching full:line

33         const SkDLine& line = tests[index];
34 SkASSERT(ValidLine(line));
36 SkPoint pts[2] = {line[0].asSkPoint(), line[1].asSkPoint()};
38 REPORTER_ASSERT(reporter, line[0] == line2[0] && line[1] == line2[1]);
41 double result = line.isLeft(pt);
46 line2 = line.subDivide(1, 0);
47 REPORTER_ASSERT(reporter, line[0] == line2[1] && line[1] == line2[0]);
49 REPORTER_ASSERT(reporter, line[0] == line2[1] && line[1] == line2[0]);
50 SkDPoint mid = line.ptAtT(.5);
51 REPORTER_ASSERT(reporter, approximately_equal((line[0].fX + line[1].fX) / 2, mid.fX));
52 REPORTER_ASSERT(reporter, approximately_equal((line[0].fY + line[1].fY) / 2, mid.fY));