Lines Matching refs:cAvg
469 SkPoint cAvg = (c0 + c1) * 0.5f;
472 if (!is_point_within_cubic_tangents(p[0], ab, dc, p[3], dir, cAvg)) {
473 // choose a new cAvg that is the intersection of the two tangent lines.
478 cAvg.fX = ab.fY * z1 - z0 * dc.fY;
479 cAvg.fY = z0 * dc.fX - ab.fX * z1;
482 cAvg.fX *= z;
483 cAvg.fY *= z;
485 SkScalar d0Sqd = SkPointPriv::DistanceToSqd(c0, cAvg);
486 SkScalar d1Sqd = SkPointPriv::DistanceToSqd(c1, cAvg);
498 pts[1] = cAvg;