Home
last modified time | relevance | path

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

12

/external/skqp/src/pathops/
DSkPathOpsPoint.h150 if (approximately_equal(fX, a.fX) && approximately_equal(fY, a.fY)) { in approximatelyDEqual()
170 if (approximately_equal(fX, a.fX) && approximately_equal(fY, a.fY)) { in approximatelyEqual()
190 if (approximately_equal(a.fX, b.fX) && approximately_equal(a.fY, b.fY)) { in ApproximatelyEqual()
DSkPathOpsWinding.cpp111 if (!approximately_equal(baseXY, boundsXY) && (baseXY < boundsXY) == checkLessThan) { in rayCheck()
128 if (!approximately_equal(baseXY, boundsXY) && (baseXY < boundsXY) == checkLessThan) { in rayCheck()
136 if (base.fSpan->segment() == this && approximately_equal(base.fT, t)) { in rayCheck()
145 } else if (approximately_equal(t, 1)) { in rayCheck()
156 if (!approximately_equal(baseXY, ptXY) && (baseXY < ptXY) == checkLessThan) { in rayCheck()
195 if (approximately_equal(tHit, next->t())) { in windingSpanAtT()
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()
DSkDCubicLineIntersection.cpp174 if (!approximately_equal(calcPt.fY, axisIntercept)) { in HorizontalIntersect()
237 if (!approximately_equal(calcPt.fX, axisIntercept)) { in VerticalIntersect()
403 if (gridPt == fCubic[0].asSkPoint() && approximately_equal(*cubicT, 0)) { in pinTs()
405 } else if (gridPt == fCubic[3].asSkPoint() && approximately_equal(*cubicT, 1)) { in pinTs()
DSkReduceOrder.cpp131 if (approximately_zero(sideAx) ? !approximately_equal(sideAx, sideBx) in check_quadratic()
140 if (approximately_zero(sideAy) ? !approximately_equal(sideAy, sideBy) in check_quadratic()
DSkPathOpsTypes.h392 inline bool approximately_equal(double x, double y) { in approximately_equal() function
417 return approximately_equal(x, y); in approximately_equal_squared()
DSkPathOpsCubic.cpp73 } while (!approximately_equal(calcPos, axisIntercept)); in binarySearch()
378 if (approximately_equal(t[idx2], 1)) { in RootsValidT()
386 if (approximately_equal(t[idx2], 0)) { in RootsValidT()
/external/skqp/tests/
DPathOpsDLineTest.cpp31 REPORTER_ASSERT(reporter, approximately_equal((line[0].fX + line[1].fX) / 2, mid.fX)); in DEF_TEST()
32 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);
/external/skia/tests/
DPathOpsDLineTest.cpp31 REPORTER_ASSERT(reporter, approximately_equal((line[0].fX + line[1].fX) / 2, mid.fX)); in DEF_TEST()
32 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);
/external/skia/src/pathops/
DSkPathOpsPoint.h156 if (approximately_equal(fX, a.fX) && approximately_equal(fY, a.fY)) { in approximatelyDEqual()
176 if (approximately_equal(fX, a.fX) && approximately_equal(fY, a.fY)) { in approximatelyEqual()
196 if (approximately_equal(a.fX, b.fX) && approximately_equal(a.fY, b.fY)) { in ApproximatelyEqual()
DSkPathOpsWinding.cpp112 if (!approximately_equal(baseXY, boundsXY) && (baseXY < boundsXY) == checkLessThan) { in rayCheck()
129 if (!approximately_equal(baseXY, boundsXY) && (baseXY < boundsXY) == checkLessThan) { in rayCheck()
137 if (base.fSpan->segment() == this && approximately_equal(base.fT, t)) { in rayCheck()
146 } else if (approximately_equal(t, 1)) { in rayCheck()
157 if (!approximately_equal(baseXY, ptXY) && (baseXY < ptXY) == checkLessThan) { in rayCheck()
196 if (approximately_equal(tHit, next->t())) { in windingSpanAtT()
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()
DSkDCubicLineIntersection.cpp174 if (!approximately_equal(calcPt.fY, axisIntercept)) { in HorizontalIntersect()
237 if (!approximately_equal(calcPt.fX, axisIntercept)) { in VerticalIntersect()
403 if (gridPt == fCubic[0].asSkPoint() && approximately_equal(*cubicT, 0)) { in pinTs()
405 } else if (gridPt == fCubic[3].asSkPoint() && approximately_equal(*cubicT, 1)) { in pinTs()
DSkReduceOrder.cpp131 if (approximately_zero(sideAx) ? !approximately_equal(sideAx, sideBx) in check_quadratic()
140 if (approximately_zero(sideAy) ? !approximately_equal(sideAy, sideBy) in check_quadratic()
DSkPathOpsTypes.h392 inline bool approximately_equal(double x, double y) { in approximately_equal() function
417 return approximately_equal(x, y); in approximately_equal_squared()
/external/skia/src/utils/win/
DSkDWriteGeometrySink.cpp87 static bool approximately_equal(float a, float b) { in approximately_equal() function
103 if (!approximately_equal(midX, (dx23 * 3 / 2) + cubic[3].x)) { in check_quadratic()
109 if (!approximately_equal(midY, (dy23 * 3 / 2) + cubic[3].y)) { in check_quadratic()
/external/skqp/src/utils/win/
DSkDWriteGeometrySink.cpp81 static bool approximately_equal(float a, float b) { in approximately_equal() function
97 if (!approximately_equal(midX, (dx23 * 3 / 2) + cubic[3].x)) { in check_quadratic()
103 if (!approximately_equal(midY, (dy23 * 3 / 2) + cubic[3].y)) { in check_quadratic()
/external/skia/src/core/
DSkEdgeBuilder.cpp62 auto approximately_equal = [](SkFixed a, SkFixed b) { in combineVertical() local
75 if (approximately_equal(edge->fUpperY, last->fLowerY)) { in combineVertical()
81 if (approximately_equal(edge->fUpperY, last->fUpperY)) { in combineVertical()
82 if (approximately_equal(edge->fLowerY, last->fLowerY)) { in combineVertical()
96 if (approximately_equal(edge->fLowerY, last->fLowerY)) { in combineVertical()
/external/skqp/src/core/
DSkEdgeBuilder.cpp62 auto approximately_equal = [](SkFixed a, SkFixed b) { in combineVertical() local
75 if (approximately_equal(edge->fUpperY, last->fLowerY)) { in combineVertical()
81 if (approximately_equal(edge->fUpperY, last->fUpperY)) { in combineVertical()
82 if (approximately_equal(edge->fLowerY, last->fLowerY)) { in combineVertical()
96 if (approximately_equal(edge->fLowerY, last->fLowerY)) { in combineVertical()

12