Home | History | Annotate | Download | only in pathops

Lines Matching refs:fPts

25     double sum = (fPts[0].fX - fPts[3].fX) * (fPts[0].fY + fPts[3].fY);
27 sum += (fPts[idx + 1].fX - fPts[idx].fX) * (fPts[idx + 1].fY + fPts[idx].fY);
43 SkDVector startTan = fPts[1] - fPts[0];
45 startTan = fPts[2] - fPts[0];
47 SkDVector endTan = fPts[2] - fPts[3];
49 endTan = fPts[1] - fPts[3];
54 SkDLine startEdge = {{fPts[0], fPts[0]}};
57 SkDLine endEdge = {{fPts[3], fPts[3]}};
60 double leftStart1 = startEdge.isLeft(fPts[1]);
61 if (leftStart1 * startEdge.isLeft(fPts[2]) < 0) {
64 double leftEnd1 = endEdge.isLeft(fPts[1]);
65 if (leftEnd1 * endEdge.isLeft(fPts[2]) < 0) {
72 return (between(fPts[0].fX, fPts[1].fX, fPts[3].fX)
73 && between(fPts[0].fX, fPts[2].fX, fPts[3].fX))
74 || (between(fPts[0].fY, fPts[1].fY, fPts[3].fY)
75 && between(fPts[0].fY, fPts[2].fY, fPts[3].fY));
92 return between(fPts[0].fY, fPts[1].fY, fPts[3].fY)
93 && between(fPts[0].fY, fPts[2].fY, fPts[3].fY);
100 double wiggle = (fPts[0].fX - fPts[2].fX) * (fPts[0].fY + fPts[2].fY);
102 wiggle += (fPts[idx + 1].fX - fPts[idx].fX) * (fPts[idx + 1].fY + fPts[idx].fY);
104 double waggle = (fPts[1].fX - fPts[3].fX) * (fPts[1].fY + fPts[3].fY);
106 waggle += (fPts[idx + 1].fX - fPts[idx].fX) * (fPts[idx + 1].fY + fPts[idx].fY);
233 SkDVector result = { derivative_at_t(&fPts[0].fX, t), derivative_at_t(&fPts[0].fY, t) };
239 double Ax = fPts[1].fX - fPts[0].fX;
240 double Ay = fPts[1].fY - fPts[0].fY;
241 double Bx = fPts[2].fX - 2 * fPts[1].fX + fPts[0].fX;
242 double By = fPts[2].fY - 2 * fPts[1].fY + fPts[0].fY;
243 double Cx = fPts[3].fX + 3 * (fPts[1].fX - fPts[2].fX) - fPts[0].fX;
244 double Cy = fPts[3].fY + 3 * (fPts[1].fY - fPts[2].fY) - fPts[0].fY;
288 formulate_F1DotF2(&fPts[0].fX, coeffX);
289 formulate_F1DotF2(&fPts[0].fY, coeffY);
318 return fPts[0];
321 return fPts[3];
330 SkDPoint result = {a * fPts[0].fX + b * fPts[1].fX + c * fPts[2].fX + d * fPts[3].fX,
331 a * fPts[0].fY + b * fPts[1].fY + c * fPts[2].fY + d * fPts[3].fY};
401 double ax = dst[0].fX = interp_cubic_coords(&fPts[0].fX, t1);
402 double ay = dst[0].fY = interp_cubic_coords(&fPts[0].fY, t1);
403 double ex = interp_cubic_coords(&fPts[0].fX, (t1*2+t2)/3);
404 double ey = interp_cubic_coords(&fPts[0].fY, (t1*2+t2)/3);
405 double fx = interp_cubic_coords(&fPts[0].fX, (t1+t2*2)/3);
406 double fy = interp_cubic_coords(&fPts[0].fY, (t1+t2*2)/3);
407 double dx = dst[3].fX = interp_cubic_coords(&fPts[0].fX, t2);
408 double dy = dst[3].fY = interp_cubic_coords(&fPts[0].fY, t2);
422 if (fPts[endIndex].fX == fPts[ctrlIndex].fX) {
423 dstPt->fX = fPts[endIndex].fX;
425 if (fPts[endIndex].fY == fPts[ctrlIndex].fY) {
426 dstPt->fY = fPts[endIndex].fY;
434 double ex = interp_cubic_coords(&fPts[0].fX, (t1 * 2 + t2) / 3);
435 double ey = interp_cubic_coords(&fPts[0].fY, (t1 * 2 + t2) / 3);
436 double fx = interp_cubic_coords(&fPts[0].fX, (t1 + t2 * 2) / 3);
437 double fy = interp_cubic_coords(&fPts[0].fY, (t1 + t2 * 2) / 3);
493 dst.pts[0] = fPts[0];
494 dst.pts[1].fX = (fPts[0].fX + fPts[1].fX) / 2;
495 dst.pts[1].fY = (fPts[0].fY + fPts[1].fY) / 2;
496 dst.pts[2].fX = (fPts[0].fX + 2 * fPts[1].fX + fPts[2].fX) / 4;
497 dst.pts[2].fY = (fPts[0].fY + 2 * fPts[1].fY + fPts[2].fY) / 4;
498 dst.pts[3].fX = (fPts[0].fX + 3 * (fPts[1].fX + fPts[2].fX) + fPts[3].fX) / 8;
499 dst.pts[3].fY = (fPts[0].fY + 3 * (fPts[1].fY + fPts[2].fY) + fPts[3].fY) / 8;
500 dst.pts[4].fX = (fPts[1].fX + 2 * fPts[2].fX + fPts[3].fX) / 4;
501 dst.pts[4].fY = (fPts[1].fY + 2 * fPts[2].fY + fPts[3].fY) / 4;
502 dst.pts[5].fX = (fPts[2].fX + fPts[3].fX) / 2;
503 dst.pts[5].fY = (fPts[2].fY + fPts[3].fY) / 2;
504 dst.pts[6] = fPts[3];
507 interp_cubic_coords(&fPts[0].fX, &dst.pts[0].fX, t);
508 interp_cubic_coords(&fPts[0].fY, &dst.pts[0].fY, t);
517 fPts[index].dump();
520 fPts[index].dump();