Lines Matching refs:SkPoint

17 const SkPoint kSerp[4] = {
20 const SkPoint kLoop[4] = {
23 const SkPoint kQuad[4] = {
26 static float wangs_formula_quadratic_reference_impl(float precision, const SkPoint p[3]) {
31 static float wangs_formula_cubic_reference_impl(float precision, const SkPoint p[4]) {
46 const SkPoint P[3],
57 const SkPoint C = SkPoint::Make(0.5f * (min_x + max_x), 0.5f * (min_y + max_y));
60 SkPoint tP[3] = {P[0] - C, P[1] - C, P[2] - C};
105 std::function<void(const SkPoint[])> f,
108 SkPoint pts[4];
123 auto setupCubicLengthTerm = [](int seed, SkPoint pts[], float term) {
124 memset(pts, 0, sizeof(SkPoint) * 4);
126 SkPoint term2d = (seed & 1) ?
127 SkPoint::Make(term, 0) : SkPoint::Make(.5f, std::sqrt(3)/2) * term;
161 auto setupQuadraticLengthTerm = [](int seed, SkPoint pts[], float term) {
162 memset(pts, 0, sizeof(SkPoint) * 3);
164 SkPoint term2d = (seed & 1) ?
165 SkPoint::Make(term, 0) : SkPoint::Make(.5f, std::sqrt(3)/2) * term;
198 SkPoint pts[4];
240 auto check_cubic_log2 = [&](const SkPoint* pts) {
248 auto check_quadratic_log2 = [&](const SkPoint* pts) {
259 SkPoint pts[4];
270 for_random_beziers(4, &rand, [&](const SkPoint pts[]) {
274 for_random_beziers(3, &rand, [&](const SkPoint pts[]) {
281 auto check_cubic_log2_with_transform = [&](const SkPoint* pts, const SkMatrix& m){
282 SkPoint ptsXformed[4];
289 auto check_quadratic_log2_with_transform = [&](const SkPoint* pts, const SkMatrix& m) {
290 SkPoint ptsXformed[3];
304 for_random_beziers(4, &rand, [&](const SkPoint pts[]) {
308 for_random_beziers(3, &rand, [&](const SkPoint pts[]) {
316 SkPoint worstP[] = {{0,0}, {100,100}, {0,0}, {0,0}};
323 SkPoint worstP[] = {{100,100}, {100,100}, {200,200}, {100,100}};
329 auto check_worst_case_cubic = [&](const SkPoint* pts) {
341 for_random_beziers(4, &rand, [&](const SkPoint pts[]) {
358 for_random_beziers(3, &rand, [&r](const SkPoint pts[]) {
367 const SkPoint* sectionPts;
368 SkPoint tmp0[5];
369 SkPoint tmp1[5];
388 SkPoint p;
392 const SkPoint n = {sectionPts[2].fY - sectionPts[0].fY,
409 for_random_beziers(3, &rand, [&r](const SkPoint pts[]) {
425 const auto eval_conic = [](const SkPoint pts[3], float w, float t) -> Sk2d {
454 [&](const SkPoint pts[]) {
485 for_random_beziers(3, &rand, [&r, w](const SkPoint pts[]) {
499 auto check_conic_with_transform = [&](const SkPoint* pts, float w, const SkMatrix& m) {
500 SkPoint ptsXformed[3];
510 for_random_beziers(3, &rand, [&](const SkPoint pts[]) {