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

123

/external/chromium_org/third_party/skia/experimental/Intersection/
H A DQuarticRoot_Test.cpp46 SkASSERT(approximately_equal(roots[0], -B)
47 || approximately_equal(roots[0], -C));
49 SkASSERT(!approximately_equal(roots[0], roots[1]));
50 SkASSERT(approximately_equal(roots[1], -B)
51 || approximately_equal(roots[1], -C));
86 SkASSERT(approximately_equal(roots[0], -B)
87 || approximately_equal(roots[0], -C)
88 || approximately_equal(roots[0], -D));
92 SkASSERT(!approximately_equal(roots[0], roots[1]));
93 SkASSERT(approximately_equal(root
[all...]
H A DTestUtilities.cpp38 return approximately_equal(cubic[maxX].x, cubic[minX].x)
39 && approximately_equal(cubic[maxY].y, cubic[minY].y);
H A DDataTypes.h88 inline bool approximately_equal(double x, double y) { function
119 return approximately_equal(x, y);
280 // return approximately_equal(a.y, y) && approximately_equal(a.x, x);
288 return approximately_equal(x * inv, a.x * inv) && approximately_equal(y * inv, a.y * inv);
297 return approximately_equal(x * inv, a.fX * inv) && approximately_equal(y * inv, a.fY * inv);
H A DQuadraticIntersection_Test.cpp42 if (!approximately_equal(tx1, tx2)) {
46 if (!approximately_equal(ty1, ty2)) {
269 SkASSERT(approximately_equal(1, tt1) || approximately_zero(tt1));
270 SkASSERT(approximately_equal(1, tt2) || approximately_zero(tt2));
/external/skia/experimental/Intersection/
H A DQuarticRoot_Test.cpp46 SkASSERT(approximately_equal(roots[0], -B)
47 || approximately_equal(roots[0], -C));
49 SkASSERT(!approximately_equal(roots[0], roots[1]));
50 SkASSERT(approximately_equal(roots[1], -B)
51 || approximately_equal(roots[1], -C));
86 SkASSERT(approximately_equal(roots[0], -B)
87 || approximately_equal(roots[0], -C)
88 || approximately_equal(roots[0], -D));
92 SkASSERT(!approximately_equal(roots[0], roots[1]));
93 SkASSERT(approximately_equal(root
[all...]
H A DTestUtilities.cpp38 return approximately_equal(cubic[maxX].x, cubic[minX].x)
39 && approximately_equal(cubic[maxY].y, cubic[minY].y);
H A DDataTypes.h88 inline bool approximately_equal(double x, double y) { function
119 return approximately_equal(x, y);
280 // return approximately_equal(a.y, y) && approximately_equal(a.x, x);
288 return approximately_equal(x * inv, a.x * inv) && approximately_equal(y * inv, a.y * inv);
297 return approximately_equal(x * inv, a.fX * inv) && approximately_equal(y * inv, a.fY * inv);
H A DQuadraticIntersection_Test.cpp42 if (!approximately_equal(tx1, tx2)) {
46 if (!approximately_equal(ty1, ty2)) {
269 SkASSERT(approximately_equal(1, tt1) || approximately_zero(tt1));
270 SkASSERT(approximately_equal(1, tt2) || approximately_zero(tt2));
/external/chromium_org/third_party/skia/tests/
H A DPathOpsDLineTest.cpp51 REPORTER_ASSERT(reporter, approximately_equal((line[0].fX + line[1].fX) / 2, mid.fX));
52 REPORTER_ASSERT(reporter, approximately_equal((line[0].fY + line[1].fY) / 2, mid.fY));
H A DPathOpsDPointTest.cpp46 REPORTER_ASSERT(reporter, approximately_equal(pt.distance(p),
H A DPathOpsDVectorTest.cpp46 REPORTER_ASSERT(reporter, approximately_equal(sqrt(lenSq), v1.length()));
/external/skia/tests/
H A DPathOpsDLineTest.cpp51 REPORTER_ASSERT(reporter, approximately_equal((line[0].fX + line[1].fX) / 2, mid.fX));
52 REPORTER_ASSERT(reporter, approximately_equal((line[0].fY + line[1].fY) / 2, mid.fY));
H A DPathOpsDPointTest.cpp46 REPORTER_ASSERT(reporter, approximately_equal(pt.distance(p),
H A DPathOpsDVectorTest.cpp46 REPORTER_ASSERT(reporter, approximately_equal(sqrt(lenSq), v1.length()));
/external/chromium_org/third_party/skia/src/pathops/
H A DSkPathOpsPoint.h112 // return approximately_equal(a.fY, fY) && approximately_equal(a.fX, fX);
115 if (approximately_equal(fX, a.fX) && approximately_equal(fY, a.fY)) {
135 if (approximately_equal(a.fX, b.fX) && approximately_equal(a.fY, b.fY)) {
152 if (approximately_equal(a.fX, b.fX) && approximately_equal(a.fY, b.fY)) {
159 if (approximately_equal(fX, a.fX) && approximately_equal(f
[all...]
H A DSkDCubicLineIntersection.cpp170 if (!approximately_equal(calcPt.fY, axisIntercept)) {
210 if (!approximately_equal(calcPt.fX, axisIntercept)) {
361 if (gridPt == fCubic[0].asSkPoint() && approximately_equal(*cubicT, 0)) {
363 } else if (gridPt == fCubic[3].asSkPoint() && approximately_equal(*cubicT, 1)) {
H A DSkDCubicToQuads.cpp140 if (!approximately_equal(inflectT[start], inflectT[next])) {
H A DSkQuarticRoot.cpp80 if (approximately_equal(roots[i], 1)) {
H A DSkPathOpsTypes.h155 inline bool approximately_equal(double x, double y) { function
180 return approximately_equal(x, y);
/external/skia/src/pathops/
H A DSkPathOpsPoint.h112 // return approximately_equal(a.fY, fY) && approximately_equal(a.fX, fX);
115 if (approximately_equal(fX, a.fX) && approximately_equal(fY, a.fY)) {
135 if (approximately_equal(a.fX, b.fX) && approximately_equal(a.fY, b.fY)) {
152 if (approximately_equal(a.fX, b.fX) && approximately_equal(a.fY, b.fY)) {
159 if (approximately_equal(fX, a.fX) && approximately_equal(f
[all...]
H A DSkDCubicLineIntersection.cpp170 if (!approximately_equal(calcPt.fY, axisIntercept)) {
210 if (!approximately_equal(calcPt.fX, axisIntercept)) {
361 if (gridPt == fCubic[0].asSkPoint() && approximately_equal(*cubicT, 0)) {
363 } else if (gridPt == fCubic[3].asSkPoint() && approximately_equal(*cubicT, 1)) {
H A DSkDCubicToQuads.cpp140 if (!approximately_equal(inflectT[start], inflectT[next])) {
H A DSkQuarticRoot.cpp80 if (approximately_equal(roots[i], 1)) {
/external/chromium_org/third_party/skia/src/utils/win/
H A DSkDWriteGeometrySink.cpp80 static bool approximately_equal(float a, float b) { function
94 //NOTE: !approximately_equal(midX - cubic[3].x, dx23 * 3 / 2)
96 if (!approximately_equal(midX, (dx23 * 3 / 2) + cubic[3].x)) {
102 if (!approximately_equal(midY, (dy23 * 3 / 2) + cubic[3].y)) {
/external/skia/src/utils/win/
H A DSkDWriteGeometrySink.cpp80 static bool approximately_equal(float a, float b) { function
94 //NOTE: !approximately_equal(midX - cubic[3].x, dx23 * 3 / 2)
96 if (!approximately_equal(midX, (dx23 * 3 / 2) + cubic[3].x)) {
102 if (!approximately_equal(midY, (dy23 * 3 / 2) + cubic[3].y)) {

Completed in 378 milliseconds

123