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