Lines Matching refs:SkPoint
28 const SkPoint kSerp[4] = {
31 const SkPoint kLoop[4] = {
34 const SkPoint kQuad[4] = {
37 static float wangs_formula_quadratic_reference_impl(float precision, const SkPoint p[3]) { in wangs_formula_quadratic_reference_impl()
42 static float wangs_formula_cubic_reference_impl(float precision, const SkPoint p[4]) { in wangs_formula_cubic_reference_impl()
57 const SkPoint P[3], in wangs_formula_conic_reference_impl()
68 const SkPoint C = SkPoint::Make(0.5f * (min_x + max_x), 0.5f * (min_y + max_y)); in wangs_formula_conic_reference_impl()
71 SkPoint tP[3] = {P[0] - C, P[1] - C, P[2] - C}; in wangs_formula_conic_reference_impl()
116 std::function<void(const SkPoint[])> f, in for_random_beziers()
119 SkPoint pts[4]; in for_random_beziers()
134 auto setupCubicLengthTerm = [](int seed, SkPoint pts[], float term) { in DEF_TEST()
135 memset(pts, 0, sizeof(SkPoint) * 4); in DEF_TEST()
137 SkPoint term2d = (seed & 1) ? in DEF_TEST()
138 SkPoint::Make(term, 0) : SkPoint::Make(.5f, std::sqrt(3)/2) * term; in DEF_TEST()
172 auto setupQuadraticLengthTerm = [](int seed, SkPoint pts[], float term) { in DEF_TEST()
173 memset(pts, 0, sizeof(SkPoint) * 3); in DEF_TEST()
175 SkPoint term2d = (seed & 1) ? in DEF_TEST()
176 SkPoint::Make(term, 0) : SkPoint::Make(.5f, std::sqrt(3)/2) * term; in DEF_TEST()
209 SkPoint pts[4]; in DEF_TEST()
251 auto check_cubic_log2 = [&](const SkPoint* pts) { in DEF_TEST()
259 auto check_quadratic_log2 = [&](const SkPoint* pts) { in DEF_TEST()
270 SkPoint pts[4]; in DEF_TEST()
281 for_random_beziers(4, &rand, [&](const SkPoint pts[]) { in DEF_TEST()
285 for_random_beziers(3, &rand, [&](const SkPoint pts[]) { in DEF_TEST()
292 auto check_cubic_log2_with_transform = [&](const SkPoint* pts, const SkMatrix& m){ in DEF_TEST()
293 SkPoint ptsXformed[4]; in DEF_TEST()
300 auto check_quadratic_log2_with_transform = [&](const SkPoint* pts, const SkMatrix& m) { in DEF_TEST()
301 SkPoint ptsXformed[3]; in DEF_TEST()
315 for_random_beziers(4, &rand, [&](const SkPoint pts[]) { in DEF_TEST()
319 for_random_beziers(3, &rand, [&](const SkPoint pts[]) { in DEF_TEST()
327 SkPoint worstP[] = {{0,0}, {100,100}, {0,0}, {0,0}}; in DEF_TEST()
334 SkPoint worstP[] = {{100,100}, {100,100}, {200,200}, {100,100}}; in DEF_TEST()
340 auto check_worst_case_cubic = [&](const SkPoint* pts) { in DEF_TEST()
352 for_random_beziers(4, &rand, [&](const SkPoint pts[]) { in DEF_TEST()
369 for_random_beziers(3, &rand, [&r](const SkPoint pts[]) { in DEF_TEST()
378 const SkPoint* sectionPts; in DEF_TEST()
379 SkPoint tmp0[5]; in DEF_TEST()
380 SkPoint tmp1[5]; in DEF_TEST()
399 SkPoint p; in DEF_TEST()
403 const SkPoint n = {sectionPts[2].fY - sectionPts[0].fY, in DEF_TEST()
420 for_random_beziers(3, &rand, [&r](const SkPoint pts[]) { in DEF_TEST()
436 const auto eval_conic = [](const SkPoint pts[3], float w, float t) -> Sk2d { in DEF_TEST()
465 [&](const SkPoint pts[]) { in DEF_TEST()
496 for_random_beziers(3, &rand, [&r, w](const SkPoint pts[]) { in DEF_TEST()
510 auto check_conic_with_transform = [&](const SkPoint* pts, float w, const SkMatrix& m) { in DEF_TEST()
511 SkPoint ptsXformed[3]; in DEF_TEST()
521 for_random_beziers(3, &rand, [&](const SkPoint pts[]) { in DEF_TEST()