Searched refs:approximately_equal (Results 1 - 25 of 38) sorted by relevance

12

/external/skia/tests/
H A DPathOpsDLineTest.cpp31 REPORTER_ASSERT(reporter, approximately_equal((line[0].fX + line[1].fX) / 2, mid.fX));
32 REPORTER_ASSERT(reporter, approximately_equal((line[0].fY + line[1].fY) / 2, mid.fY));
H A DPathOpsDPointTest.cpp45 REPORTER_ASSERT(reporter, approximately_equal(pt.distance(p),
H A DPathOpsDVectorTest.cpp44 REPORTER_ASSERT(reporter, approximately_equal(sqrt(lenSq), v1.length()));
H A DPathOpsCubicReduceOrderTest.cpp40 return approximately_equal(cubic[maxX].fX, cubic[minX].fX)
41 && approximately_equal(cubic[maxY].fY, cubic[minY].fY);
H A DPathOpsTestCommon.cpp85 if (!approximately_equal(inflectT[start], inflectT[next])) {
/external/skqp/tests/
H A DPathOpsDLineTest.cpp31 REPORTER_ASSERT(reporter, approximately_equal((line[0].fX + line[1].fX) / 2, mid.fX));
32 REPORTER_ASSERT(reporter, approximately_equal((line[0].fY + line[1].fY) / 2, mid.fY));
H A DPathOpsDPointTest.cpp45 REPORTER_ASSERT(reporter, approximately_equal(pt.distance(p),
H A DPathOpsDVectorTest.cpp44 REPORTER_ASSERT(reporter, approximately_equal(sqrt(lenSq), v1.length()));
H A DPathOpsCubicReduceOrderTest.cpp40 return approximately_equal(cubic[maxX].fX, cubic[minX].fX)
41 && approximately_equal(cubic[maxY].fY, cubic[minY].fY);
H A DPathOpsTestCommon.cpp85 if (!approximately_equal(inflectT[start], inflectT[next])) {
/external/skia/src/utils/win/
H A DSkDWriteGeometrySink.cpp81 static bool approximately_equal(float a, float b) { function
95 //NOTE: !approximately_equal(midX - cubic[3].x, dx23 * 3 / 2)
97 if (!approximately_equal(midX, (dx23 * 3 / 2) + cubic[3].x)) {
103 if (!approximately_equal(midY, (dy23 * 3 / 2) + cubic[3].y)) {
/external/skqp/src/utils/win/
H A DSkDWriteGeometrySink.cpp81 static bool approximately_equal(float a, float b) { function
95 //NOTE: !approximately_equal(midX - cubic[3].x, dx23 * 3 / 2)
97 if (!approximately_equal(midX, (dx23 * 3 / 2) + cubic[3].x)) {
103 if (!approximately_equal(midY, (dy23 * 3 / 2) + cubic[3].y)) {
/external/skia/src/pathops/
H A DSkPathOpsPoint.h145 // return approximately_equal(a.fY, fY) && approximately_equal(a.fX, fX);
148 if (approximately_equal(fX, a.fX) && approximately_equal(fY, a.fY)) {
168 if (approximately_equal(fX, a.fX) && approximately_equal(fY, a.fY)) {
188 if (approximately_equal(a.fX, b.fX) && approximately_equal(a.fY, b.fY)) {
H A DSkPathOpsWinding.cpp109 if (!approximately_equal(baseXY, boundsXY) && (baseXY < boundsXY) == checkLessThan) {
126 if (!approximately_equal(baseXY, boundsXY) && (baseXY < boundsXY) == checkLessThan) {
134 if (base.fSpan->segment() == this && approximately_equal(base.fT, t)) {
143 } else if (approximately_equal(t, 1)) {
154 if (!approximately_equal(baseXY, ptXY) && (baseXY < ptXY) == checkLessThan) {
193 if (approximately_equal(tHit, next->t())) {
H A DSkOpCubicHull.cpp22 if (approximately_equal(cubic[side1].fY, cubic[zero].fY)) {
25 if (approximately_equal(cubic[side2].fY, cubic[zero].fY)) {
H A DSkDCubicLineIntersection.cpp174 if (!approximately_equal(calcPt.fY, axisIntercept)) {
237 if (!approximately_equal(calcPt.fX, axisIntercept)) {
403 if (gridPt == fCubic[0].asSkPoint() && approximately_equal(*cubicT, 0)) {
405 } else if (gridPt == fCubic[3].asSkPoint() && approximately_equal(*cubicT, 1)) {
H A DSkReduceOrder.cpp131 if (approximately_zero(sideAx) ? !approximately_equal(sideAx, sideBx)
140 if (approximately_zero(sideAy) ? !approximately_equal(sideAy, sideBy)
H A DSkPathOpsTypes.h392 inline bool approximately_equal(double x, double y) { function
417 return approximately_equal(x, y);
H A DSkPathOpsCubic.cpp74 } while (!approximately_equal(calcPos, axisIntercept));
381 if (approximately_equal(t[idx2], 1)) {
389 if (approximately_equal(t[idx2], 0)) {
/external/skqp/src/pathops/
H A DSkPathOpsPoint.h145 // return approximately_equal(a.fY, fY) && approximately_equal(a.fX, fX);
148 if (approximately_equal(fX, a.fX) && approximately_equal(fY, a.fY)) {
168 if (approximately_equal(fX, a.fX) && approximately_equal(fY, a.fY)) {
188 if (approximately_equal(a.fX, b.fX) && approximately_equal(a.fY, b.fY)) {
H A DSkPathOpsWinding.cpp109 if (!approximately_equal(baseXY, boundsXY) && (baseXY < boundsXY) == checkLessThan) {
126 if (!approximately_equal(baseXY, boundsXY) && (baseXY < boundsXY) == checkLessThan) {
134 if (base.fSpan->segment() == this && approximately_equal(base.fT, t)) {
143 } else if (approximately_equal(t, 1)) {
154 if (!approximately_equal(baseXY, ptXY) && (baseXY < ptXY) == checkLessThan) {
193 if (approximately_equal(tHit, next->t())) {
H A DSkOpCubicHull.cpp22 if (approximately_equal(cubic[side1].fY, cubic[zero].fY)) {
25 if (approximately_equal(cubic[side2].fY, cubic[zero].fY)) {
H A DSkDCubicLineIntersection.cpp174 if (!approximately_equal(calcPt.fY, axisIntercept)) {
237 if (!approximately_equal(calcPt.fX, axisIntercept)) {
403 if (gridPt == fCubic[0].asSkPoint() && approximately_equal(*cubicT, 0)) {
405 } else if (gridPt == fCubic[3].asSkPoint() && approximately_equal(*cubicT, 1)) {
H A DSkReduceOrder.cpp131 if (approximately_zero(sideAx) ? !approximately_equal(sideAx, sideBx)
140 if (approximately_zero(sideAy) ? !approximately_equal(sideAy, sideBy)
H A DSkPathOpsTypes.h392 inline bool approximately_equal(double x, double y) { function
417 return approximately_equal(x, y);

Completed in 263 milliseconds

12