• Home
  • Raw
  • Download

Lines Matching refs:tan0

119 static inline bool is_convex_curve_monotonic(const Sk2f& startPt, const Sk2f& tan0,  in is_convex_curve_monotonic()  argument
122 float dot0 = dot(tan0, v); in is_convex_curve_monotonic()
154 Sk2f tan0 = p1 - p0; 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()
179 Sk2f dQ0n = tan0 * n; in appendQuadratics()
183 Sk2f p01 = SkNx_fma(t, tan0, p0); in appendQuadratics()
220 const Sk2f& p3, Sk2f* tan0, Sk2f* tan1) { in get_cubic_tangents() argument
221 *tan0 = first_unless_nearly_zero(p1 - p0, p2 - p0); in get_cubic_tangents()
226 const Sk2f& p3, const Sk2f& tan0, const Sk2f& tan1, in is_cubic_nearly_quadratic() argument
228 Sk2f c1 = SkNx_fma(Sk2f(1.5f), tan0, p0); 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()
673 const Sk2f& p3, const Sk2f& tan0, in chopAndAppendCubicAtMidTangent() argument
676 float midT = find_midtangent(tan0, tan1, p3 + (p1 - p2)*3 - p0, in chopAndAppendCubicAtMidTangent()
700 Sk2f tan0 = p1 - p0; 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()