Lines Matching refs:tan1

120                                              const Sk2f& endPt, const Sk2f& tan1) {  in is_convex_curve_monotonic()  argument
123 float dot1 = dot(tan1, v); in is_convex_curve_monotonic()
155 Sk2f tan1 = p2 - p1; in appendQuadratics() local
158 if (is_convex_curve_monotonic(p0, tan0, p2, tan1)) { in appendQuadratics()
165 Sk2f n = normalize(tan0) - normalize(tan1); in appendQuadratics()
178 Sk2f dQ1n = (tan0 - tan1) * n; in appendQuadratics()
184 Sk2f p12 = SkNx_fma(t, tan1, p1); in appendQuadratics()
220 const Sk2f& p3, Sk2f* tan0, Sk2f* tan1) { in get_cubic_tangents() argument
222 *tan1 = first_unless_nearly_zero(p3 - p2, p3 - p1); in get_cubic_tangents()
226 const Sk2f& p3, const Sk2f& tan0, const Sk2f& tan1, in is_cubic_nearly_quadratic() argument
229 Sk2f c2 = SkNx_fma(Sk2f(-1.5f), tan1, p3); in is_cubic_nearly_quadratic()
483 Sk2f tan0, tan1, c; in cubicTo() local
484 get_cubic_tangents(p0, p1, p2, p3, &tan0, &tan1); in cubicTo()
485 if (is_cubic_nearly_quadratic(p0, p1, p2, p3, tan0, tan1, &c)) { in cubicTo()
590 Sk2f tan0, tan1; in appendCubics() local
591 get_cubic_tangents(p0, p1, p2, p3, &tan0, &tan1); in appendCubics()
593 if (maxSubdivisions && !is_convex_curve_monotonic(p0, tan0, p3, tan1)) { in appendCubics()
594 this->chopAndAppendCubicAtMidTangent(mode, p0, p1, p2, p3, tan0, tan1, in appendCubics()
601 if (!is_cubic_nearly_quadratic(p0, p1, p2, p3, tan0, tan1, &c) && maxSubdivisions) { in appendCubics()
602 this->chopAndAppendCubicAtMidTangent(mode, p0, p1, p2, p3, tan0, tan1, in appendCubics()
636 static inline float find_midtangent(const Sk2f& tan0, const Sk2f& tan1, in find_midtangent() argument
643 Sk2f n = normalize(tan0) - normalize(tan1); in find_midtangent()
674 const Sk2f& tan1, in chopAndAppendCubicAtMidTangent() argument
676 float midT = find_midtangent(tan0, tan1, p3 + (p1 - p2)*3 - p0, in chopAndAppendCubicAtMidTangent()
701 Sk2f tan1 = p2 - p1; in conicTo() local
703 if (!is_convex_curve_monotonic(p0, tan0, p2, tan1)) { in conicTo()
709 float midT = find_midtangent(tan0, tan1, (w - 1) * (p2 - p0), in conicTo()