• Home
  • Raw
  • Download

Lines Matching refs:quad2

129 static bool checkParallel(skiatest::Reporter* reporter, const SkDQuad& quad1, const SkDQuad& quad2)…  in checkParallel()  argument
132 setQuadHullSweep(quad2, tweep); in checkParallel()
149 double mFactor = fabs(useS ? distEndRatio(sDist, quad1) : distEndRatio(tDist, quad2)); in checkParallel()
154 SkDVector m1 = quad2.ptAtT(0.5) - quad2[0]; in checkParallel()
164 const SkDQuad& quad2) { in quadHullsOverlap() argument
167 setQuadHullSweep(quad2, tweep); in quadHullsOverlap()
198 SkDVector m1 = quad2.ptAtT(0.5) - quad2[0]; in quadHullsOverlap()
207 return checkParallel(reporter, quad1, quad2); in quadHullsOverlap()
228 static bool orderTRange(skiatest::Reporter* reporter, const SkDQuad& quad1, const SkDQuad& quad2, in orderTRange() argument
232 orderQuads(reporter,quad2, r, &t2Array); in orderTRange()
241 double a2 = quadAngle(reporter,quad2, t2); in orderTRange()
285 static bool bruteMinT(skiatest::Reporter* reporter, const SkDQuad& quad1, const SkDQuad& quad2, in bruteMinT() argument
287 double maxRadius = SkTMin(maxDist(quad1), maxDist(quad2)); in bruteMinT()
288 double maxQuads = SkTMax(maxQuad(quad1), maxQuad(quad2)); in bruteMinT()
300 bool stepUp = orderTRange(reporter, quad1, quad2, r, &tRange); in bruteMinT()
307 SkDPoint pt2 = quad2.ptAtT(tRange.t2); in bruteMinT()
348 bool success = orderTRange(reporter, quad1, quad2, r, &tRange); in bruteMinT()
362 SkDPoint pt2 = quad2.ptAtT(tRange.t2); in bruteMinT()
394 static void bruteForce(skiatest::Reporter* reporter, const SkDQuad& quad1, const SkDQuad& quad2, in bruteForce() argument
400 bool result = bruteMinT(reporter, quad1, quad2, &lowerRange, &upperRange); in bruteForce()
407 const SkDQuad& quad2, bool ccw) { in bruteForceCheck() argument
409 bool result = bruteMinT(reporter, quad1, quad2, &lowerRange, &upperRange); in bruteForceCheck()
421 static void testQuadAngles(skiatest::Reporter* reporter, const SkDQuad& quad1, const SkDQuad& quad2, in testQuadAngles() argument
437 REPORTER_ASSERT(reporter, origin == quad2[0]); in testQuadAngles()
440 double a2s = atan2(origin.fY - quad2[1].fY, quad2[1].fX - origin.fX); in testQuadAngles()
441 double a2e = atan2(origin.fY - quad2[2].fY, quad2[2].fX - origin.fX); in testQuadAngles()
445 int overlap = quadHullsOverlap(reporter, quad1, quad2); in testQuadAngles()
451 DumpQ(quad1, quad2, testNo); in testQuadAngles()
455 … overlap = quadHullsOverlap(reporter, quad1, quad2); // set a breakpoint and debug if assert fires in testQuadAngles()
460 SkDVector v2s = quad2[1] - quad2[0]; in testQuadAngles()
461 SkDVector v2e = quad2[2] - quad2[0]; in testQuadAngles()
474 bruteForce(reporter, quad1, quad2, overlap > 0); in testQuadAngles()
477 SkDLine rays[] = {{{origin, quad2[2]}}, {{origin, quad1[2]}}}; in testQuadAngles()
478 const SkDQuad* quads[] = {&quad1, &quad2}; in testQuadAngles()
549 firstInside = checkParallel(reporter, quad1, quad2); in testQuadAngles()
557 bruteForce(reporter, quad1, quad2, firstInside); in testQuadAngles()
589 QuadPts quad2 = {{origin, {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}, in DEF_TEST() local
591 if (quad2.fPts[0] == quad2.fPts[2]) { in DEF_TEST()
597 q2.debugSet(quad2.fPts); in DEF_TEST()
622 QuadPts quad2 = {{origin, {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}, in DEF_TEST() local
624 if (quad2.fPts[0] == quad2.fPts[2]) { in DEF_TEST()
629 q2.debugSet(quad2.fPts); in DEF_TEST()
816 SkDQuad quad1, quad2; in DEF_TEST() local
818 quad2.debugSet(qu2.fPts); in DEF_TEST()
822 REPORTER_ASSERT(reporter, quad1[0] == quad2[0]); in DEF_TEST()
824 i.intersect(quad1, quad2); in DEF_TEST()
827 int overlap = quadHullsOverlap(reporter, quad1, quad2); in DEF_TEST()
831 setQuadHullSweep(quad2, tweep); in DEF_TEST()
835 bool agrees = bruteForceCheck(reporter, quad1, quad2, ccw); in DEF_TEST()
836 maxR = SkTMin(maxR, mDistance(reporter, agrees, quad1, quad2)); in DEF_TEST()
840 midPointAgrees(reporter, quad1, quad2, !ccw); in DEF_TEST()
842 SkDQuad q2 = quad2; in DEF_TEST()
849 q2[1].fX = quad2[0].fX * (1 - hiPass) + quad2[1].fX * hiPass; in DEF_TEST()
850 q2[1].fY = quad2[0].fY * (1 - hiPass) + quad2[1].fY * hiPass; in DEF_TEST()
856 midPointAgrees(reporter, quad1, quad2, !ccw); in DEF_TEST()
866 q2[1].fX = quad2[0].fX * (1 - midTest) + quad2[1].fX * midTest; in DEF_TEST()
867 q2[1].fY = quad2[0].fY * (1 - midTest) + quad2[1].fY * midTest; in DEF_TEST()
871 midPointAgrees(reporter, quad1, quad2, !ccw); in DEF_TEST()