Searched refs:AlmostEqualUlps (Results 1 – 10 of 10) sorted by relevance
/third_party/skia/tests/ |
D | PathOpsCubicReduceOrderTest.cpp | 250 if ( (!AlmostEqualUlps(reducer.fLine[0].fX, bounds.fLeft) in DEF_TEST() 251 && !AlmostEqualUlps(reducer.fLine[0].fX, bounds.fRight)) in DEF_TEST() 252 || (!AlmostEqualUlps(reducer.fLine[0].fY, bounds.fTop) in DEF_TEST() 253 && !AlmostEqualUlps(reducer.fLine[0].fY, bounds.fBottom)) in DEF_TEST() 254 || (!AlmostEqualUlps(reducer.fLine[1].fX, bounds.fLeft) in DEF_TEST() 255 && !AlmostEqualUlps(reducer.fLine[1].fX, bounds.fRight)) in DEF_TEST() 256 || (!AlmostEqualUlps(reducer.fLine[1].fY, bounds.fTop) in DEF_TEST() 257 && !AlmostEqualUlps(reducer.fLine[1].fY, bounds.fBottom))) { in DEF_TEST()
|
D | PathOpsLineParametetersTest.cpp | 58 if (AlmostEqualUlps(distSq, normalSquared * answersSq)) { in DEF_TEST() 72 if (AlmostEqualUlps(fabs(normalizedDistance[inner]), answers[index][inner])) { in DEF_TEST()
|
/third_party/skia/src/pathops/ |
D | SkPathOpsCurve.h | 266 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()
|
D | SkPathOpsPoint.h | 13 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() 66 return AlmostEqualUlps(xy, yx) ? 0 : xy - yx; in crossCheck()
|
D | SkDLineIntersection.cpp | 68 if (!AlmostEqualUlps(aLen.fX * a[0].fY - aLen.fY * a[0].fX, in intersectRay() 193 if (AlmostEqualUlps(min, max) && max - min < fabs(line[0].fX - line[1].fX)) { in horizontal_coincident() 271 if (AlmostEqualUlps(min, max)) { in vertical_coincident()
|
D | SkPathOpsLine.cpp | 110 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()
|
D | SkPathOpsTypes.h | 236 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()
|
D | SkReduceOrder.cpp | 75 if (AlmostEqualUlps(quad[index].fX, quad[minX].fX)) { in reduce() 78 if (AlmostEqualUlps(quad[index].fY, quad[minY].fY)) { in reduce()
|
D | SkPathOpsTypes.cpp | 129 bool AlmostEqualUlps(float a, float b) { in AlmostEqualUlps() function
|
D | SkOpAngle.cpp | 711 double xy = SkPath::kLine_Verb == verb || !AlmostEqualUlps(absX, absY) ? absX - absY : 0; in findSector()
|