Home
last modified time | relevance | path

Searched refs:approximatelyEqual (Results 1 – 24 of 24) sorted by relevance

/external/skia/tests/
DPathOpsQuadLineIntersectionTest.cpp95 if (!quadXY.approximatelyEqual(lineXY)) { in testOneOffs()
96 quadXY.approximatelyEqual(lineXY); in testOneOffs()
99 REPORTER_ASSERT(reporter, quadXY.approximatelyEqual(lineXY)); in testOneOffs()
142 if (!t1.approximatelyEqual(t2)) { in DEF_TEST()
147 if (!t1.approximatelyEqual(lineQuadTests[index].expected[0]) in DEF_TEST()
149 || !t1.approximatelyEqual(lineQuadTests[index].expected[1]))) { in DEF_TEST()
DPathOpsCubicIntersectionTest.cpp62 if (!xy1.approximatelyEqual(xy2)) { in standardTestCases()
66 REPORTER_ASSERT(reporter, xy1.approximatelyEqual(xy2)); in standardTestCases()
430 REPORTER_ASSERT(reporter, xy1.approximatelyEqual(iPt)); in oneOff()
431 REPORTER_ASSERT(reporter, xy2.approximatelyEqual(iPt)); in oneOff()
432 REPORTER_ASSERT(reporter, xy1.approximatelyEqual(xy2)); in oneOff()
520 REPORTER_ASSERT(reporter, xy1.approximatelyEqual(xy2)); in CubicIntersection_RandTest()
574 } while (!t1[1].approximatelyEqual(t2[1])); in intersectionFinder()
583 t10 += t1[1].approximatelyEqual(test) ? -t1Step : t1Step; in intersectionFinder()
589 t12 -= t1[1].approximatelyEqual(test) ? -t1Step : t1Step; in intersectionFinder()
594 t20 += t2[1].approximatelyEqual(test) ? -t2Step : t2Step; in intersectionFinder()
[all …]
DPathOpsConicLineIntersectionTest.cpp85 if (!conicXY.approximatelyEqual(lineXY)) { in testOneOffs()
86 conicXY.approximatelyEqual(lineXY); in testOneOffs()
89 REPORTER_ASSERT(reporter, conicXY.approximatelyEqual(lineXY)); in testOneOffs()
137 if (!t1.approximatelyEqual(t2)) { in DEF_TEST()
142 if (!t1.approximatelyEqual(lineConicTests[index].expected[0]) in DEF_TEST()
144 || !t1.approximatelyEqual(lineConicTests[index].expected[1]))) { in DEF_TEST()
DPathOpsQuadIntersectionTest.cpp47 if (!xy1.approximatelyEqual(xy2)) { in standardTestCases()
351 if (!xy1.approximatelyEqual(xy2)) { in oneOffTest1()
405 REPORTER_ASSERT(reporter, pt1.approximatelyEqual(pt2)); in coincidentTestOne()
466 } while (!t1[1].approximatelyEqual(t2[1])); in intersectionFinder()
475 t10 += t1[1].approximatelyEqual(test) ? -t1Step : t1Step; in intersectionFinder()
481 t12 -= t1[1].approximatelyEqual(test) ? -t1Step : t1Step; in intersectionFinder()
486 t20 += t2[1].approximatelyEqual(test) ? -t2Step : t2Step; in intersectionFinder()
492 t22 -= t2[1].approximatelyEqual(test) ? -t2Step : t2Step; in intersectionFinder()
DPathOpsDPointTest.cpp35 REPORTER_ASSERT(reporter, p.approximatelyEqual(pt)); in DEF_TEST()
39 REPORTER_ASSERT(reporter, p.approximatelyEqual(sPt)); in DEF_TEST()
DPathOpsConicQuadIntersectionTest.cpp55 if (!xy1.approximatelyEqual(xy2)) { in conicQuadIntersection()
59 REPORTER_ASSERT(reporter, xy1.approximatelyEqual(xy2)); in conicQuadIntersection()
DPathOpsCubicConicIntersectionTest.cpp59 if (!xy1.approximatelyEqual(xy2)) { in cubicConicIntersection()
63 REPORTER_ASSERT(reporter, xy1.approximatelyEqual(xy2)); in cubicConicIntersection()
DPathOpsCubicQuadIntersectionTest.cpp83 if (!xy1.approximatelyEqual(xy2)) { in cubicQuadIntersection()
87 REPORTER_ASSERT(reporter, xy1.approximatelyEqual(xy2)); in cubicQuadIntersection()
DPathOpsLineIntersectionTest.cpp95 if (!result1.approximatelyEqual(result2) && !ts.nearlySame(i)) { in check_results()
98 if (!result1.approximatelyEqual(result2)) { in check_results()
101 REPORTER_ASSERT(reporter, result1.approximatelyEqual(result2)); in check_results()
102 REPORTER_ASSERT(reporter, result1.approximatelyEqual(ts.pt(i).asSkPoint())); in check_results()
DPathOpsCubicLineIntersectionIdeas.cpp60 if (cubicAtT.approximatelyEqual(pt)) { in binary_search()
174 if (calcPt.approximatelyEqual(pt)) { in DEF_TEST()
267 SkASSERT_RELEASE(!calcPt.approximatelyEqual(pt)); in testOneFailure()
DPathOpsConicIntersectionTest.cpp54 SkASSERT(dChopped[cIndex].fPts[pIndex].approximatelyEqual(up)); in chopCompare()
328 REPORTER_ASSERT(reporter, xy1.approximatelyEqual(iPt)); in oneOff()
329 REPORTER_ASSERT(reporter, xy2.approximatelyEqual(iPt)); in oneOff()
330 REPORTER_ASSERT(reporter, xy1.approximatelyEqual(xy2)); in oneOff()
DPathOpsCubicLineIntersectionTest.cpp154 if (!xy1.approximatelyEqual(xy2)) { in testOne()
158 REPORTER_ASSERT(reporter, xy1.approximatelyEqual(xy2)); in testOne()
DPathOpsQuadLineIntersectionThreadedTest.cpp61 if (quadXY.approximatelyEqual(lineXY)) { in testLineIntersect()
/external/skia/src/pathops/
DSkPathOpsCubic.h27 return fPts[0].approximatelyEqual(fPts[1]) && fPts[0].approximatelyEqual(fPts[2]) in collapsed()
28 && fPts[0].approximatelyEqual(fPts[3]); in collapsed()
DSkPathOpsQuad.h29 return fPts[0].approximatelyEqual(fPts[1]) && fPts[0].approximatelyEqual(fPts[2]); in collapsed()
DSkPathOpsTSect.h381 cPt.approximatelyEqual(fPerpPt) ? "==" : "!=", fPerpT, fPerpPt.fX, fPerpPt.fY); in setPerp()
383 fMatch = cPt.approximatelyEqual(fPerpPt); in setPerp()
932 if (last.approximatelyEqual(work.fPart[0])) { in binarySearchCoin()
957 if (last.approximatelyEqual(fCurve[0])) { in binarySearchCoin()
959 } else if (last.approximatelyEqual(fCurve[TCurve::kPointLast])) { in binarySearchCoin()
962 if (oppPt.approximatelyEqual(opp[0])) { in binarySearchCoin()
964 } else if (oppPt.approximatelyEqual(opp[OppCurve::kPointLast])) { in binarySearchCoin()
1400 finds += perpRayI.pt(pIndex).approximatelyEqual(thisPerp.fPts[1]); in is_parallel()
1407 finds += perpRayI.pt(pIndex).approximatelyEqual(thisPerp.fPts[0]); in is_parallel()
1436 ptMatches += thisRayI.pt(tIndex).approximatelyEqual(thisLine.fPts[lIndex]); in linesIntersect()
[all …]
DSkPathOpsPoint.h167 bool approximatelyEqual(const SkDPoint& a) const { in approximatelyEqual() function
181 bool approximatelyEqual(const SkPoint& a) const { in approximatelyEqual() function
184 return approximatelyEqual(dA); in approximatelyEqual()
DSkReduceOrder.cpp23 return 1 + !reduction[0].approximatelyEqual(reduction[1]); in reductionLineCount()
109 return 1 + !reduction[0].approximatelyEqual(reduction[1]); in reductionLineCount()
DSkDQuadLineIntersection.cpp232 if (quadMidPt.approximatelyEqual(pt)) { in uniqueAnswer()
DSkDCubicLineIntersection.cpp218 if (cubicMidPt.approximatelyEqual(pt)) { in uniqueAnswer()
DSkDConicLineIntersection.cpp328 if (conicMidPt.approximatelyEqual(pt)) { in uniqueAnswer()
DSkOpCoincidence.cpp311 if (!oppPt.approximatelyEqual(pt)) { in addEndMovedSpans()
DSkPathOpsDebug.cpp1514 if (!oppPt.approximatelyEqual(pt)) { in debugAddEndMovedSpans()
/external/skia/src/core/
DSkEdgeBuilder.cpp62 static inline bool approximatelyEqual(SkFixed a, SkFixed b) { in approximatelyEqual() function
78 if (approximatelyEqual(edge->fUpperY, last->fLowerY)) { in CombineVertical()
84 if (approximatelyEqual(edge->fUpperY, last->fUpperY)) { in CombineVertical()
85 if (approximatelyEqual(edge->fLowerY, last->fLowerY)) { in CombineVertical()
99 if (approximatelyEqual(edge->fLowerY, last->fLowerY)) { in CombineVertical()