Lines Matching defs:length
28 return sqrtf(k * (p[0] - p[1]*2 + p[2]).length());
33 return sqrtf(k * std::max((p[0] - p[1]*2 + p[2]).length(),
34 (p[1] - p[2]*2 + p[3]).length()));
59 // Translate control points and compute max length
63 max_len = std::max(max_len, tP[i].length());
73 (tP[2] - tP[1] * 2 * w + tP[0]).length() + r_minus_eps * std::abs(1 - 2 * w + 1);
119 // Constructs a cubic such that the 'length' term in wang's formula == term.
121 // f = sqrt(k * length(max(abs(p0 - p1*2 + p2),
158 // Constructs a quadratic such that the 'length' term in wang's formula == term.
160 // f = sqrt(k * length(p0 - p1*2 + p2));
202 // f = sqrt(k * length(max(abs(p0 - p1*2 + p2),
394 const float d = std::abs((p - sectionPts[0]).dot(n)) / n.length();
447 const auto length = [](const Sk2d& p) -> double { return sqrt(p[0] * p[0] + p[1] * p[1]); };
469 SkASSERT(length(n) != 0);
470 const double d = std::abs(dot(p1 - p0, n)) / length(n);