Home
last modified time | relevance | path

Searched refs:AlmostEqualUlps (Results 1 – 10 of 10) sorted by relevance

/external/skia/tests/
DPathOpsCubicReduceOrderTest.cpp248 if ( (!AlmostEqualUlps(reducer.fLine[0].fX, bounds.fLeft) in DEF_TEST()
249 && !AlmostEqualUlps(reducer.fLine[0].fX, bounds.fRight)) in DEF_TEST()
250 || (!AlmostEqualUlps(reducer.fLine[0].fY, bounds.fTop) in DEF_TEST()
251 && !AlmostEqualUlps(reducer.fLine[0].fY, bounds.fBottom)) in DEF_TEST()
252 || (!AlmostEqualUlps(reducer.fLine[1].fX, bounds.fLeft) in DEF_TEST()
253 && !AlmostEqualUlps(reducer.fLine[1].fX, bounds.fRight)) in DEF_TEST()
254 || (!AlmostEqualUlps(reducer.fLine[1].fY, bounds.fTop) in DEF_TEST()
255 && !AlmostEqualUlps(reducer.fLine[1].fY, bounds.fBottom))) { in DEF_TEST()
DPathOpsLineParametetersTest.cpp58 if (AlmostEqualUlps(distSq, normalSquared * answersSq)) { in DEF_TEST()
72 if (AlmostEqualUlps(fabs(normalizedDistance[inner]), answers[index][inner])) { in DEF_TEST()
/external/skia/src/pathops/
DSkPathOpsCurve.h266 return AlmostEqualUlps(dst[0].fX, dst[1].fX); in line_is_vertical()
273 return AlmostEqualUlps(dst[0].fX, dst[1].fX) && AlmostEqualUlps(dst[1].fX, dst[2].fX); in quad_is_vertical()
280 return AlmostEqualUlps(dst[0].fX, dst[1].fX) && AlmostEqualUlps(dst[1].fX, dst[2].fX); in conic_is_vertical()
287 return AlmostEqualUlps(dst[0].fX, dst[1].fX) && AlmostEqualUlps(dst[1].fX, dst[2].fX) in cubic_is_vertical()
288 && AlmostEqualUlps(dst[2].fX, dst[3].fX); in cubic_is_vertical()
DSkPathOpsPoint.h13 inline bool AlmostEqualUlps(const SkPoint& pt1, const SkPoint& pt2) { in AlmostEqualUlps() function
14 return AlmostEqualUlps(pt1.fX, pt2.fX) && AlmostEqualUlps(pt1.fY, pt2.fY); in AlmostEqualUlps()
65 return AlmostEqualUlps(xy, yx) ? 0 : xy - yx; in crossCheck()
DSkDLineIntersection.cpp66 if (!AlmostEqualUlps(aLen.fX * a[0].fY - aLen.fY * a[0].fX, in intersectRay()
190 if (AlmostEqualUlps(min, max) && max - min < fabs(line[0].fX - line[1].fX)) { in horizontal_coincident()
266 if (AlmostEqualUlps(min, max)) { in vertical_coincident()
DSkPathOpsLine.cpp110 if (!AlmostEqualUlps(largest, largest + dist)) { // is the dist within ULPS tolerance? in NearPointH()
145 if (!AlmostEqualUlps(largest, largest + dist)) { // is the dist within ULPS tolerance? in NearPointV()
DSkPathOpsTypes.h236 bool AlmostEqualUlps(float a, float b);
237 inline bool AlmostEqualUlps(double a, double b) { in AlmostEqualUlps() function
238 return AlmostEqualUlps(SkDoubleToScalar(a), SkDoubleToScalar(b)); in AlmostEqualUlps()
DSkReduceOrder.cpp75 if (AlmostEqualUlps(quad[index].fX, quad[minX].fX)) { in reduce()
78 if (AlmostEqualUlps(quad[index].fY, quad[minY].fY)) { in reduce()
DSkPathOpsTypes.cpp126 bool AlmostEqualUlps(float a, float b) { in AlmostEqualUlps() function
DSkOpAngle.cpp609 double xy = SkPath::kLine_Verb == verb || !AlmostEqualUlps(absX, absY) ? absX - absY : 0; in findSector()