/external/chromium_org/third_party/skia/experimental/Intersection/ |
QuarticRoot_Test.cpp | 138 SkASSERT(AlmostEqualUlps(roots[0], -B) 139 || AlmostEqualUlps(roots[0], -C) 140 || AlmostEqualUlps(roots[0], -D) 141 || AlmostEqualUlps(roots[0], -E)); 145 SkASSERT(!AlmostEqualUlps(roots[0], roots[1])); 146 SkASSERT(AlmostEqualUlps(roots[1], -B) 147 || AlmostEqualUlps(roots[1], -C) 148 || AlmostEqualUlps(roots[1], -D) 149 || AlmostEqualUlps(roots[1], -E)); 153 SkASSERT(!AlmostEqualUlps(roots[0], roots[2] [all...] |
CubicReduceOrder_Test.cpp | 145 if ( (!AlmostEqualUlps(reduce[0].x, bounds.left) && !AlmostEqualUlps(reduce[0].x, bounds.right)) 146 || (!AlmostEqualUlps(reduce[0].y, bounds.top) && !AlmostEqualUlps(reduce[0].y, bounds.bottom)) 147 || (!AlmostEqualUlps(reduce[1].x, bounds.left) && !AlmostEqualUlps(reduce[1].x, bounds.right)) 148 || (!AlmostEqualUlps(reduce[1].y, bounds.top) && !AlmostEqualUlps(reduce[1].y, bounds.bottom))) {
|
LineCubicIntersection_Test.cpp | 51 if (!AlmostEqualUlps(tx1, tx2)) { 55 if (!AlmostEqualUlps(ty1, ty2)) {
|
LineParameterization.cpp | 22 if (!AlmostEqualUlps(oneD.x * twoD.y, twoD.x * oneD.y)) { 30 if (!AlmostEqualUlps(oneD.x * one[0].y - oneD.y * one[0].x,
|
LineParameteters_Test.cpp | 57 if (AlmostEqualUlps(distSq, normalSquared * answersSq)) { 71 if (AlmostEqualUlps(fabs(normalizedDistance[inner]), answers[index][inner])) {
|
CubicToQuadratics_Test.cpp | 47 if (!AlmostEqualUlps(cubic[0].x, quads[0][0].x) 48 || !AlmostEqualUlps(cubic[0].y, quads[0][0].y)) { 52 if (!AlmostEqualUlps(cubic[3].x, quads[last][2].x) 53 || !AlmostEqualUlps(cubic[3].y, quads[last][2].y)) { 70 if (!AlmostEqualUlps(cubic[0].x, quads[0][0].x) 71 || !AlmostEqualUlps(cubic[0].y, quads[0][0].y)) { 75 if (!AlmostEqualUlps(cubic[3].x, quads[last][2].x) 76 || !AlmostEqualUlps(cubic[3].y, quads[last][2].y)) {
|
QuadraticIntersection.cpp | 75 if (AlmostEqualUlps(q2pt.x, q1pt.x) && AlmostEqualUlps(q2pt.y, q1pt.y)) { 79 SkASSERT(AlmostEqualUlps(q2pt.x, q1pt.x) && AlmostEqualUlps(q2pt.y, q1pt.y)); 86 if (AlmostEqualUlps(q2pt.x, q1pt.x) && AlmostEqualUlps(q2pt.y, q1pt.y)) { 90 SkASSERT(AlmostEqualUlps(q2pt.x, q1pt.x) && AlmostEqualUlps(q2pt.y, q1pt.y)); 183 if (AlmostEqualUlps(midQuad.x, midLine.x) 184 && AlmostEqualUlps(midQuad.y, midLine.y)) [all...] |
Extrema.cpp | 48 if (r - roots == 2 && AlmostEqualUlps(roots[0], roots[1])) { // nearly-equal?
|
/external/skia/experimental/Intersection/ |
QuarticRoot_Test.cpp | 138 SkASSERT(AlmostEqualUlps(roots[0], -B) 139 || AlmostEqualUlps(roots[0], -C) 140 || AlmostEqualUlps(roots[0], -D) 141 || AlmostEqualUlps(roots[0], -E)); 145 SkASSERT(!AlmostEqualUlps(roots[0], roots[1])); 146 SkASSERT(AlmostEqualUlps(roots[1], -B) 147 || AlmostEqualUlps(roots[1], -C) 148 || AlmostEqualUlps(roots[1], -D) 149 || AlmostEqualUlps(roots[1], -E)); 153 SkASSERT(!AlmostEqualUlps(roots[0], roots[2] [all...] |
CubicReduceOrder_Test.cpp | 145 if ( (!AlmostEqualUlps(reduce[0].x, bounds.left) && !AlmostEqualUlps(reduce[0].x, bounds.right)) 146 || (!AlmostEqualUlps(reduce[0].y, bounds.top) && !AlmostEqualUlps(reduce[0].y, bounds.bottom)) 147 || (!AlmostEqualUlps(reduce[1].x, bounds.left) && !AlmostEqualUlps(reduce[1].x, bounds.right)) 148 || (!AlmostEqualUlps(reduce[1].y, bounds.top) && !AlmostEqualUlps(reduce[1].y, bounds.bottom))) {
|
LineCubicIntersection_Test.cpp | 51 if (!AlmostEqualUlps(tx1, tx2)) { 55 if (!AlmostEqualUlps(ty1, ty2)) {
|
LineParameterization.cpp | 22 if (!AlmostEqualUlps(oneD.x * twoD.y, twoD.x * oneD.y)) { 30 if (!AlmostEqualUlps(oneD.x * one[0].y - oneD.y * one[0].x,
|
LineParameteters_Test.cpp | 57 if (AlmostEqualUlps(distSq, normalSquared * answersSq)) { 71 if (AlmostEqualUlps(fabs(normalizedDistance[inner]), answers[index][inner])) {
|
CubicToQuadratics_Test.cpp | 47 if (!AlmostEqualUlps(cubic[0].x, quads[0][0].x) 48 || !AlmostEqualUlps(cubic[0].y, quads[0][0].y)) { 52 if (!AlmostEqualUlps(cubic[3].x, quads[last][2].x) 53 || !AlmostEqualUlps(cubic[3].y, quads[last][2].y)) { 70 if (!AlmostEqualUlps(cubic[0].x, quads[0][0].x) 71 || !AlmostEqualUlps(cubic[0].y, quads[0][0].y)) { 75 if (!AlmostEqualUlps(cubic[3].x, quads[last][2].x) 76 || !AlmostEqualUlps(cubic[3].y, quads[last][2].y)) {
|
QuadraticIntersection.cpp | 75 if (AlmostEqualUlps(q2pt.x, q1pt.x) && AlmostEqualUlps(q2pt.y, q1pt.y)) { 79 SkASSERT(AlmostEqualUlps(q2pt.x, q1pt.x) && AlmostEqualUlps(q2pt.y, q1pt.y)); 86 if (AlmostEqualUlps(q2pt.x, q1pt.x) && AlmostEqualUlps(q2pt.y, q1pt.y)) { 90 SkASSERT(AlmostEqualUlps(q2pt.x, q1pt.x) && AlmostEqualUlps(q2pt.y, q1pt.y)); 183 if (AlmostEqualUlps(midQuad.x, midLine.x) 184 && AlmostEqualUlps(midQuad.y, midLine.y)) [all...] |
/external/chromium_org/third_party/skia/src/pathops/ |
SkPathWriter.cpp | 40 if (fEmpty && AlmostEqualUlps(fDefer[0], pt1) && AlmostEqualUlps(pt1, pt2) 41 && AlmostEqualUlps(pt2, pt3)) { 115 if (fEmpty || !AlmostEqualUlps(fDefer[1].fX, fFirstPt.fX) 116 || !AlmostEqualUlps(fDefer[1].fY, fFirstPt.fY)) { 124 if (fEmpty && AlmostEqualUlps(fDefer[0], pt1) && AlmostEqualUlps(pt1, pt2)) {
|
SkPathOpsCurve.h | 128 return AlmostEqualUlps(dst[0].fX, dst[1].fX); 135 return AlmostEqualUlps(dst[0].fX, dst[1].fX) && AlmostEqualUlps(dst[1].fX, dst[2].fX); 142 return AlmostEqualUlps(dst[0].fX, dst[1].fX) && AlmostEqualUlps(dst[1].fX, dst[2].fX) 143 && AlmostEqualUlps(dst[2].fX, dst[3].fX);
|
/external/skia/src/pathops/ |
SkPathWriter.cpp | 40 if (fEmpty && AlmostEqualUlps(fDefer[0], pt1) && AlmostEqualUlps(pt1, pt2) 41 && AlmostEqualUlps(pt2, pt3)) { 115 if (fEmpty || !AlmostEqualUlps(fDefer[1].fX, fFirstPt.fX) 116 || !AlmostEqualUlps(fDefer[1].fY, fFirstPt.fY)) { 124 if (fEmpty && AlmostEqualUlps(fDefer[0], pt1) && AlmostEqualUlps(pt1, pt2)) {
|
SkPathOpsCurve.h | 128 return AlmostEqualUlps(dst[0].fX, dst[1].fX); 135 return AlmostEqualUlps(dst[0].fX, dst[1].fX) && AlmostEqualUlps(dst[1].fX, dst[2].fX); 142 return AlmostEqualUlps(dst[0].fX, dst[1].fX) && AlmostEqualUlps(dst[1].fX, dst[2].fX) 143 && AlmostEqualUlps(dst[2].fX, dst[3].fX);
|
/external/chromium_org/third_party/skia/tests/ |
PathOpsCubicToQuadsTest.cpp | 58 if (!AlmostEqualUlps(cubic[0].fX, quads[0][0].fX) 59 || !AlmostEqualUlps(cubic[0].fY, quads[0][0].fY)) { 64 if (!AlmostEqualUlps(cubic[3].fX, quads[last][2].fX) 65 || !AlmostEqualUlps(cubic[3].fY, quads[last][2].fY)) { 81 if (!AlmostEqualUlps(cubic[0].fX, quads[0][0].fX) 82 || !AlmostEqualUlps(cubic[0].fY, quads[0][0].fY)) { 87 if (!AlmostEqualUlps(cubic[3].fX, quads[last][2].fX) 88 || !AlmostEqualUlps(cubic[3].fY, quads[last][2].fY)) {
|
PathOpsLineParametetersTest.cpp | 56 if (AlmostEqualUlps(distSq, normalSquared * answersSq)) { 70 if (AlmostEqualUlps(fabs(normalizedDistance[inner]), answers[index][inner])) {
|
PathOpsCubicReduceOrderTest.cpp | 228 if ( (!AlmostEqualUlps(reducer.fLine[0].fX, bounds.fLeft) 229 && !AlmostEqualUlps(reducer.fLine[0].fX, bounds.fRight)) 230 || (!AlmostEqualUlps(reducer.fLine[0].fY, bounds.fTop) 231 && !AlmostEqualUlps(reducer.fLine[0].fY, bounds.fBottom)) 232 || (!AlmostEqualUlps(reducer.fLine[1].fX, bounds.fLeft) 233 && !AlmostEqualUlps(reducer.fLine[1].fX, bounds.fRight)) 234 || (!AlmostEqualUlps(reducer.fLine[1].fY, bounds.fTop) 235 && !AlmostEqualUlps(reducer.fLine[1].fY, bounds.fBottom))) {
|
/external/skia/tests/ |
PathOpsCubicToQuadsTest.cpp | 58 if (!AlmostEqualUlps(cubic[0].fX, quads[0][0].fX) 59 || !AlmostEqualUlps(cubic[0].fY, quads[0][0].fY)) { 64 if (!AlmostEqualUlps(cubic[3].fX, quads[last][2].fX) 65 || !AlmostEqualUlps(cubic[3].fY, quads[last][2].fY)) { 81 if (!AlmostEqualUlps(cubic[0].fX, quads[0][0].fX) 82 || !AlmostEqualUlps(cubic[0].fY, quads[0][0].fY)) { 87 if (!AlmostEqualUlps(cubic[3].fX, quads[last][2].fX) 88 || !AlmostEqualUlps(cubic[3].fY, quads[last][2].fY)) {
|
PathOpsLineParametetersTest.cpp | 56 if (AlmostEqualUlps(distSq, normalSquared * answersSq)) { 70 if (AlmostEqualUlps(fabs(normalizedDistance[inner]), answers[index][inner])) {
|
PathOpsCubicReduceOrderTest.cpp | 228 if ( (!AlmostEqualUlps(reducer.fLine[0].fX, bounds.fLeft) 229 && !AlmostEqualUlps(reducer.fLine[0].fX, bounds.fRight)) 230 || (!AlmostEqualUlps(reducer.fLine[0].fY, bounds.fTop) 231 && !AlmostEqualUlps(reducer.fLine[0].fY, bounds.fBottom)) 232 || (!AlmostEqualUlps(reducer.fLine[1].fX, bounds.fLeft) 233 && !AlmostEqualUlps(reducer.fLine[1].fX, bounds.fRight)) 234 || (!AlmostEqualUlps(reducer.fLine[1].fY, bounds.fTop) 235 && !AlmostEqualUlps(reducer.fLine[1].fY, bounds.fBottom))) {
|