Lines Matching defs:wt

12 static void debugShowLineIntersection(int pts, const SkIntersectionHelper& wt,
17 __FUNCTION__, LINE_DEBUG_DATA(wt.pts()), LINE_DEBUG_DATA(wn.pts()));
21 i[0][0], LINE_DEBUG_DATA(wt.pts()), PT_DEBUG_DATA(i, 0));
32 static void debugShowQuadLineIntersection(int pts, const SkIntersectionHelper& wt,
38 __FUNCTION__, QUAD_DEBUG_DATA(wt.pts()), LINE_DEBUG_DATA(wn.pts()));
42 i[0][0], QUAD_DEBUG_DATA(wt.pts()), PT_DEBUG_DATA(i, 0));
53 static void debugShowQuadIntersection(int pts, const SkIntersectionHelper& wt,
58 __FUNCTION__, QUAD_DEBUG_DATA(wt.pts()), QUAD_DEBUG_DATA(wn.pts()));
62 i[0][0], QUAD_DEBUG_DATA(wt.pts()), PT_DEBUG_DATA(i, 0));
73 static void debugShowCubicLineIntersection(int pts, const SkIntersectionHelper& wt,
78 __FUNCTION__, CUBIC_DEBUG_DATA(wt.pts()), LINE_DEBUG_DATA(wn.pts()));
82 i[0][0], CUBIC_DEBUG_DATA(wt.pts()), PT_DEBUG_DATA(i, 0));
93 static void debugShowCubicQuadIntersection(int pts, const SkIntersectionHelper& wt,
98 __FUNCTION__, CUBIC_DEBUG_DATA(wt.pts()), QUAD_DEBUG_DATA(wn.pts()));
102 i[0][0], CUBIC_DEBUG_DATA(wt.pts()), PT_DEBUG_DATA(i, 0));
113 static void debugShowCubicIntersection(int pts, const SkIntersectionHelper& wt,
118 __FUNCTION__, CUBIC_DEBUG_DATA(wt.pts()), CUBIC_DEBUG_DATA(wn.pts()));
122 i[0][0], CUBIC_DEBUG_DATA(wt.pts()), PT_DEBUG_DATA(i, 0));
133 static void debugShowCubicIntersection(int pts, const SkIntersectionHelper& wt,
138 CUBIC_DEBUG_DATA(wt.pts()));
142 i[0][0], CUBIC_DEBUG_DATA(wt.pts()), PT_DEBUG_DATA(i, 0));
187 SkIntersectionHelper wt;
188 wt.init(test);
193 if (test == next && !wn.startAfter(wt)) {
197 if (!SkPathOpsBounds::Intersects(wt.bounds(), wn.bounds())) {
203 switch (wt.segmentType()) {
210 pts = ts.lineHorizontal(wn.pts(), wt.left(),
211 wt.right(), wt.y(), wt.xFlipped());
212 debugShowLineIntersection(pts, wn, wt, ts);
216 pts = ts.quadHorizontal(wn.pts(), wt.left(),
217 wt.right(), wt.y(), wt.xFlipped());
218 debugShowQuadLineIntersection(pts, wn, wt, ts);
222 pts = ts.cubicHorizontal(wn.pts(), wt.left(),
223 wt.right(), wt.y(), wt.xFlipped());
224 debugShowCubicLineIntersection(pts, wn, wt, ts);
237 pts = ts.lineVertical(wn.pts(), wt.top(),
238 wt.bottom(), wt.x(), wt.yFlipped());
239 debugShowLineIntersection(pts, wn, wt, ts);
243 pts = ts.quadVertical(wn.pts(), wt.top(),
244 wt.bottom(), wt.x(), wt.yFlipped());
245 debugShowQuadLineIntersection(pts, wn, wt, ts);
249 pts = ts.cubicVertical(wn.pts(), wt.top(),
250 wt.bottom(), wt.x(), wt.yFlipped());
251 debugShowCubicLineIntersection(pts, wn, wt, ts);
261 pts = ts.lineHorizontal(wt.pts(), wn.left(),
263 debugShowLineIntersection(pts, wt, wn, ts);
266 pts = ts.lineVertical(wt.pts(), wn.top(),
268 debugShowLineIntersection(pts, wt, wn, ts);
271 pts = ts.lineLine(wt.pts(), wn.pts());
272 debugShowLineIntersection(pts, wt, wn, ts);
277 pts = ts.quadLine(wn.pts(), wt.pts());
278 debugShowQuadLineIntersection(pts, wn, wt, ts);
283 pts = ts.cubicLine(wn.pts(), wt.pts());
284 debugShowCubicLineIntersection(pts, wn, wt, ts);
294 pts = ts.quadHorizontal(wt.pts(), wn.left(),
296 debugShowQuadLineIntersection(pts, wt, wn, ts);
299 pts = ts.quadVertical(wt.pts(), wn.top(),
301 debugShowQuadLineIntersection(pts, wt, wn, ts);
304 pts = ts.quadLine(wt.pts(), wn.pts());
305 debugShowQuadLineIntersection(pts, wt, wn, ts);
309 pts = ts.quadQuad(wt.pts(), wn.pts());
310 debugShowQuadIntersection(pts, wt, wn, ts);
315 pts = ts.cubicQuad(wn.pts(), wt.pts());
316 debugShowCubicQuadIntersection(pts, wn, wt, ts);
326 pts = ts.cubicHorizontal(wt.pts(), wn.left(),
328 debugShowCubicLineIntersection(pts, wt, wn, ts);
331 pts = ts.cubicVertical(wt.pts(), wn.top(),
333 debugShowCubicLineIntersection(pts, wt, wn, ts);
336 pts = ts.cubicLine(wt.pts(), wn.pts());
337 debugShowCubicLineIntersection(pts, wt, wn, ts);
341 pts = ts.cubicQuad(wt.pts(), wn.pts());
342 debugShowCubicQuadIntersection(pts, wt, wn, ts);
346 pts = ts.cubicCubic(wt.pts(), wn.pts());
347 debugShowCubicIntersection(pts, wt, wn, ts);
365 && wt.segmentType() <= SkIntersectionHelper::kLine_Segment) {
366 if (wt.addCoincident(wn, ts, swap)) {
372 && wt.segmentType() >= SkIntersectionHelper::kQuad_Segment
375 if (wt.addCoincident(wn, ts, swap)) {
386 if (wt.isPartial(ts[swap][pt], ts[swap][pt + 1], point, next)
388 if (!wt.addPartialCoincident(wn, ts, pt, swap)) {
400 int testTAt = wt.addT(wn, point, ts[swap][pt]);
401 int nextTAt = wn.addT(wt, point, ts[!swap][pt]);
402 wt.addOtherT(testTAt, ts[!swap][pt], nextTAt);
406 } while (wt.advance());
411 SkIntersectionHelper wt;
412 wt.init(test);
414 if (wt.segmentType() != SkIntersectionHelper::kCubic_Segment) {
418 int pts = ts.cubic(wt.pts());
419 debugShowCubicIntersection(pts, wt, ts);
427 int testTAt = wt.addSelfT(wt, point, ts[0][0]);
428 int nextTAt = wt.addT(wt, point, ts[1][0]);
429 wt.addOtherT(testTAt, ts[1][0], nextTAt);
430 wt.addOtherT(nextTAt, ts[0][0], testTAt);
431 } while (wt.advance());