Home | History | Annotate | Download | only in tests

Lines Matching defs:ts

88                           const SkIntersections& ts, bool nearAllowed) {
89 for (int i = 0; i < ts.used(); ++i) {
90 SkDPoint result1 = line1.ptAtT(ts[0][i]);
91 SkDPoint result2 = line2.ptAtT(ts[1][i]);
95 if (!result1.approximatelyEqual(result2) && !ts.nearlySame(i)) {
96 REPORTER_ASSERT(reporter, ts.used() != 1);
97 result2 = line2.ptAtT(ts[1][i ^ 1]);
102 REPORTER_ASSERT(reporter, result1.approximatelyEqual(ts.pt(i).asSkPoint()));
123 SkIntersections ts;
124 ts.horizontal(line2, left, right, line1[0].fY, line1[0].fX != left);
125 check_results(reporter, line2, line1, ts, nearAllowed);
130 SkIntersections ts;
131 ts.horizontal(line1, left, right, line2[0].fY, line2[0].fX != left);
132 check_results(reporter, line1, line2, ts, nearAllowed);
137 SkIntersections ts;
138 ts.vertical(line2, top, bottom, line1[0].fX, line1[0].fY != top);
139 check_results(reporter, line2, line1, ts, nearAllowed);
144 SkIntersections ts;
145 ts.vertical(line1, top, bottom, line2[0].fX, line2[0].fY != top);
146 check_results(reporter, line1, line2, ts, nearAllowed);
155 SkIntersections ts;
156 int pts = ts.intersect(line1, line2);
158 REPORTER_ASSERT(reporter, pts == ts.used());
159 check_results(reporter, line1, line2, ts, false);
166 SkIntersections ts;
167 ts.horizontal(line2, left, right, line1[0].fY, line1[0].fX != left);
169 REPORTER_ASSERT(reporter, pts == ts.used());
170 check_results(reporter, line2, line1, ts, false);
175 SkIntersections ts;
176 ts.horizontal(line1, left, right, line2[0].fY, line2[0].fX != left);
178 REPORTER_ASSERT(reporter, pts == ts.used());
179 check_results(reporter, line1, line2, ts, false);
184 SkIntersections ts;
185 ts.vertical(line2, top, bottom, line1[0].fX, line1[0].fY != top);
187 REPORTER_ASSERT(reporter, pts == ts.used());
188 check_results(reporter, line2, line1, ts, false);
193 SkIntersections ts;
194 ts.vertical(line1, top, bottom, line2[0].fX, line2[0].fY != top);
196 REPORTER_ASSERT(reporter, pts == ts.used());
197 check_results(reporter, line1, line2, ts, false);
217 SkIntersections ts;
218 int pts = ts.intersect(line1, line2);
220 REPORTER_ASSERT(reporter, pts == ts.used());