Home
last modified time | relevance | path

Searched refs:approximately_equal (Results 1 – 19 of 19) sorted by relevance

/external/skia/tests/
DPathOpsDLineTest.cpp47 REPORTER_ASSERT(reporter, approximately_equal((line[0].fX + line[1].fX) / 2, mid.fX)); in DEF_TEST()
48 REPORTER_ASSERT(reporter, approximately_equal((line[0].fY + line[1].fY) / 2, mid.fY)); in DEF_TEST()
DPathOpsDVectorTest.cpp44 REPORTER_ASSERT(reporter, approximately_equal(sqrt(lenSq), v1.length())); in DEF_TEST()
DPathOpsDPointTest.cpp45 REPORTER_ASSERT(reporter, approximately_equal(pt.distance(p), in DEF_TEST()
DPathOpsCubicReduceOrderTest.cpp40 return approximately_equal(cubic[maxX].fX, cubic[minX].fX)
41 && approximately_equal(cubic[maxY].fY, cubic[minY].fY);
DPathOpsTestCommon.cpp85 if (!approximately_equal(inflectT[start], inflectT[next])) { in toQuadraticTs()
DPathOpsAngleIdeas.cpp95 if (approximately_equal(t, matchT)) { in orderQuads()
240 if (approximately_equal(a1, a2)) { in orderTRange()
/external/skia/src/pathops/
DSkPathOpsWinding.cpp109 if (!approximately_equal(baseXY, boundsXY) && (baseXY < boundsXY) == checkLessThan) { in rayCheck()
126 if (!approximately_equal(baseXY, boundsXY) && (baseXY < boundsXY) == checkLessThan) { in rayCheck()
134 if (base.fSpan->segment() == this && approximately_equal(base.fT, t)) { in rayCheck()
143 } else if (approximately_equal(t, 1)) { in rayCheck()
154 if (!approximately_equal(baseXY, ptXY) && (baseXY < ptXY) == checkLessThan) { in rayCheck()
193 if (approximately_equal(tHit, next->t())) { in windingSpanAtT()
DSkPathOpsPoint.h134 if (approximately_equal(fX, a.fX) && approximately_equal(fY, a.fY)) { in approximatelyEqual()
154 if (approximately_equal(a.fX, b.fX) && approximately_equal(a.fY, b.fY)) { in ApproximatelyEqual()
DSkDCubicLineIntersection.cpp172 if (!approximately_equal(calcPt.fY, axisIntercept)) { in HorizontalIntersect()
235 if (!approximately_equal(calcPt.fX, axisIntercept)) { in VerticalIntersect()
385 if (gridPt == fCubic[0].asSkPoint() && approximately_equal(*cubicT, 0)) { in pinTs()
387 } else if (gridPt == fCubic[3].asSkPoint() && approximately_equal(*cubicT, 1)) { in pinTs()
DSkOpCubicHull.cpp22 if (approximately_equal(cubic[side1].fY, cubic[zero].fY)) { in rotate()
25 if (approximately_equal(cubic[side2].fY, cubic[zero].fY)) { in rotate()
DSkReduceOrder.cpp137 if (approximately_zero(sideAx) ? !approximately_equal(sideAx, sideBx) in check_quadratic()
146 if (approximately_zero(sideAy) ? !approximately_equal(sideAy, sideBy) in check_quadratic()
DSkPathOpsTypes.h278 inline bool approximately_equal(double x, double y) { in approximately_equal() function
303 return approximately_equal(x, y); in approximately_equal_squared()
DSkPathOpsCubic.cpp74 } while (!approximately_equal(calcPos, axisIntercept)); in binarySearch()
345 if (approximately_equal(t[idx2], 1)) { in RootsValidT()
353 if (approximately_equal(t[idx2], 0)) { in RootsValidT()
DSkPathOpsQuad.cpp87 if (approximately_equal(t[idx2], tValue)) { in AddValidTs()
DSkDLineIntersection.cpp17 if ((!startMatch && !endMatch) || approximately_equal(fT[0][0], fT[0][1])) { in cleanUpParallelLines()
DSkDQuadLineIntersection.cpp387 if (fIntersections->used() > 0 && approximately_equal((*fIntersections)[1][0], *lineT)) { in pinTs()
DSkDConicLineIntersection.cpp282 if (fIntersections->used() > 0 && approximately_equal((*fIntersections)[1][0], *lineT)) { in pinTs()
DSkOpAngle.cpp347 if (!approximately_equal(oSpan->t(), checkEnd->t())) { in computeSector()
/external/skia/src/utils/win/
DSkDWriteGeometrySink.cpp80 static bool approximately_equal(float a, float b) { in approximately_equal() function
96 if (!approximately_equal(midX, (dx23 * 3 / 2) + cubic[3].x)) { in check_quadratic()
102 if (!approximately_equal(midY, (dy23 * 3 / 2) + cubic[3].y)) { in check_quadratic()