Home
last modified time | relevance | path

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

/external/skia/src/pathops/
DSkPathWriter.cpp40 if (fEmpty && AlmostEqualUlps(fDefer[0], pt1) && AlmostEqualUlps(pt1, pt2)) { in conicTo()
58 if (fEmpty && AlmostEqualUlps(fDefer[0], pt1) && AlmostEqualUlps(pt1, pt2) in cubicTo()
59 && AlmostEqualUlps(pt2, pt3)) { in cubicTo()
133 if (fEmpty || !AlmostEqualUlps(fDefer[1].fX, fFirstPt.fX) in nudge()
134 || !AlmostEqualUlps(fDefer[1].fY, fFirstPt.fY)) { in nudge()
142 if (fEmpty && AlmostEqualUlps(fDefer[0], pt1) && AlmostEqualUlps(pt1, pt2)) { in quadTo()
DSkPathOpsCurve.h202 return AlmostEqualUlps(dst[0].fX, dst[1].fX); in line_is_vertical()
209 return AlmostEqualUlps(dst[0].fX, dst[1].fX) && AlmostEqualUlps(dst[1].fX, dst[2].fX); in quad_is_vertical()
216 return AlmostEqualUlps(dst[0].fX, dst[1].fX) && AlmostEqualUlps(dst[1].fX, dst[2].fX); in conic_is_vertical()
223 return AlmostEqualUlps(dst[0].fX, dst[1].fX) && AlmostEqualUlps(dst[1].fX, dst[2].fX) in cubic_is_vertical()
224 && 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()
64 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.h165 bool AlmostEqualUlps(float a, float b);
166 inline bool AlmostEqualUlps(double a, double b) { in AlmostEqualUlps() function
167 return AlmostEqualUlps(SkDoubleToScalar(a), SkDoubleToScalar(b)); in AlmostEqualUlps()
DSkReduceOrder.cpp74 if (AlmostEqualUlps(quad[index].fX, quad[minX].fX)) { in reduce()
77 if (AlmostEqualUlps(quad[index].fY, quad[minY].fY)) { in reduce()
DSkPathOpsTypes.cpp118 bool AlmostEqualUlps(float a, float b) { in AlmostEqualUlps() function
DSkOpAngle.cpp195 crosses[index - 1] = AlmostEqualUlps(xy1, xy2) ? 0 : xy1 - xy2; in allOnOneSide()
577 double xy = SkPath::kLine_Verb == verb || !AlmostEqualUlps(absX, absY) ? absX - absY : 0; in findSector()
/external/skia/tests/
DPathOpsCubicReduceOrderTest.cpp228 if ( (!AlmostEqualUlps(reducer.fLine[0].fX, bounds.fLeft) in DEF_TEST()
229 && !AlmostEqualUlps(reducer.fLine[0].fX, bounds.fRight)) in DEF_TEST()
230 || (!AlmostEqualUlps(reducer.fLine[0].fY, bounds.fTop) in DEF_TEST()
231 && !AlmostEqualUlps(reducer.fLine[0].fY, bounds.fBottom)) in DEF_TEST()
232 || (!AlmostEqualUlps(reducer.fLine[1].fX, bounds.fLeft) in DEF_TEST()
233 && !AlmostEqualUlps(reducer.fLine[1].fX, bounds.fRight)) in DEF_TEST()
234 || (!AlmostEqualUlps(reducer.fLine[1].fY, bounds.fTop) in DEF_TEST()
235 && !AlmostEqualUlps(reducer.fLine[1].fY, bounds.fBottom))) { in DEF_TEST()
DPathOpsLineParametetersTest.cpp56 if (AlmostEqualUlps(distSq, normalSquared * answersSq)) { in DEF_TEST()
70 if (AlmostEqualUlps(fabs(normalizedDistance[inner]), answers[index][inner])) { in DEF_TEST()