Lines Matching refs:fX
14 return AlmostEqualUlps(pt1.fX, pt2.fX) && AlmostEqualUlps(pt1.fY, pt2.fY); in AlmostEqualUlps()
18 double fX; member
22 fX = pt.fX; in set()
29 fX += v.fX;
35 fX -= v.fX;
41 fX /= s;
47 fX *= s;
52 SkVector v = {SkDoubleToScalar(fX), SkDoubleToScalar(fY)}; in asSkVector()
58 return fX * a.fY - fY * a.fX; in cross()
64 double xy = fX * a.fY; in crossCheck()
65 double yx = fY * a.fX; in crossCheck()
71 double xy = fX * a.fY; in crossNoNormalCheck()
72 double yx = fY * a.fX; in crossNoNormalCheck()
77 return fX * a.fX + fY * a.fY; in dot()
85 return fX * fX + fY * fY; in lengthSquared()
90 fX *= inverseLength; in normalize()
96 return std::isfinite(fX) && std::isfinite(fY); in isFinite()
101 double fX; member
105 fX = pt.fX; in set()
110 return { a.fX - b.fX, a.fY - b.fY };
114 return a.fX == b.fX && a.fY == b.fY;
118 return a.fX != b.fX || a.fY != b.fY;
122 fX = pt.fX;
128 fX += v.fX;
134 fX -= v.fX;
156 if (approximately_equal(fX, a.fX) && approximately_equal(fY, a.fY)) { in approximatelyDEqual()
159 if (!RoughlyEqualUlps(fX, a.fX) || !RoughlyEqualUlps(fY, a.fY)) { in approximatelyDEqual()
163 double tiniest = std::min(std::min(std::min(fX, a.fX), fY), a.fY); in approximatelyDEqual()
164 double largest = std::max(std::max(std::max(fX, a.fX), fY), a.fY); in approximatelyDEqual()
176 if (approximately_equal(fX, a.fX) && approximately_equal(fY, a.fY)) { in approximatelyEqual()
179 if (!RoughlyEqualUlps(fX, a.fX) || !RoughlyEqualUlps(fY, a.fY)) { in approximatelyEqual()
183 double tiniest = std::min(std::min(std::min(fX, a.fX), fY), a.fY); in approximatelyEqual()
184 double largest = std::max(std::max(std::max(fX, a.fX), fY), a.fY); in approximatelyEqual()
196 if (approximately_equal(a.fX, b.fX) && approximately_equal(a.fY, b.fY)) { in ApproximatelyEqual()
199 if (!RoughlyEqualUlps(a.fX, b.fX) || !RoughlyEqualUlps(a.fY, b.fY)) { in ApproximatelyEqual()
206 float tiniest = std::min(std::min(std::min(a.fX, b.fX), a.fY), b.fY); in ApproximatelyEqual()
207 float largest = std::max(std::max(std::max(a.fX, b.fX), a.fY), b.fY); in ApproximatelyEqual()
214 return approximately_zero(fX) && approximately_zero(fY); in approximatelyZero()
218 SkPoint pt = {SkDoubleToScalar(fX), SkDoubleToScalar(fY)}; in asSkPoint()
234 result.fX = (a.fX + b.fX) / 2; in Mid()
240 if (roughly_equal(fX, a.fX) && roughly_equal(fY, a.fY)) { in roughlyEqual()
244 double tiniest = std::min(std::min(std::min(fX, a.fX), fY), a.fY); in roughlyEqual()
245 double largest = std::max(std::max(std::max(fX, a.fX), fY), a.fY); in roughlyEqual()
251 if (!RoughlyEqualUlps(a.fX, b.fX) && !RoughlyEqualUlps(a.fY, b.fY)) { in RoughlyEqual()
258 float tiniest = std::min(std::min(std::min(a.fX, b.fX), a.fY), b.fY); in RoughlyEqual()
259 float largest = std::max(std::max(std::max(a.fX, b.fX), a.fY), b.fY); in RoughlyEqual()
266 float largestNumber = std::max(SkTAbs(a.fX), std::max(SkTAbs(a.fY), in WayRoughlyEqual()
267 std::max(SkTAbs(b.fX), SkTAbs(b.fY)))); in WayRoughlyEqual()
269 float largestDiff = std::max(diffs.fX, diffs.fY); in WayRoughlyEqual()