Home | History | Annotate | Download | only in core

Lines Matching refs:Sk2s

12 static SkVector to_vector(const Sk2s& x) {
133 Sk2s P0 = from_point(src[0]);
134 Sk2s P1 = from_point(src[1]);
135 Sk2s P2 = from_point(src[2]);
137 Sk2s B = P1 - P0;
138 Sk2s A = P2 - P1 - B;
139 Sk2s T = A * Sk2s(t) + B;
144 static inline Sk2s interp(const Sk2s& v0, const Sk2s& v1, const Sk2s& t) {
151 Sk2s p0 = from_point(src[0]);
152 Sk2s p1 = from_point(src[1]);
153 Sk2s p2 = from_point(src[2]);
154 Sk2s tt(t);
156 Sk2s p01 = interp(p0, p1, tt);
157 Sk2s p12 = interp(p1, p2, tt);
277 Sk2s scale(SkDoubleToScalar(2.0 / 3.0));
278 Sk2s s0 = from_point(src[0]);
279 Sk2s s1 = from_point(src[1]);
280 Sk2s s2 = from_point(src[2]);
321 Sk2s P0 = from_point(src[0]);
322 Sk2s P1 = from_point(src[1]);
323 Sk2s P2 = from_point(src[2]);
324 Sk2s P3 = from_point(src[3]);
326 coeff.fA = P3 + Sk2s(3) * (P1 - P2) - P0;
333 Sk2s P0 = from_point(src[0]);
334 Sk2s P1 = from_point(src[1]);
335 Sk2s P2 = from_point(src[2]);
336 Sk2s P3 = from_point(src[3]);
337 Sk2s A = P3 + Sk2s(3) * (P1 - P2) - P0;
338 Sk2s B = P2 - times_2(P1) + P0;
340 return to_vector(A * Sk2s(t) + B);
396 Sk2s p0 = from_point(src[0]);
397 Sk2s p1 = from_point(src[1]);
398 Sk2s p2 = from_point(src[2]);
399 Sk2s p3 = from_point(src[3]);
400 Sk2s tt(t);
402 Sk2s ab = interp(p0, p1, tt);
403 Sk2s bc = interp(p1, p2, tt);
404 Sk2s cd = interp(p2, p3, tt);
405 Sk2s abc = interp(ab, bc, tt);
406 Sk2s bcd = interp(bc, cd, tt);
407 Sk2s abcd = interp(abc, bcd, tt);
1017 Sk2s tt1(t1);
1018 Sk2s aXY = coeff.fNumer.eval(tt1);
1019 Sk2s aZZ = coeff.fDenom.eval(tt1);
1020 Sk2s midTT((t1 + t2) / 2);
1021 Sk2s dXY = coeff.fNumer.eval(midTT);
1022 Sk2s dZZ = coeff.fDenom.eval(midTT);
1023 Sk2s tt2(t2);
1024 Sk2s cXY = coeff.fNumer.eval(tt2);
1025 Sk2s cZZ = coeff.fDenom.eval(tt2);
1026 Sk2s bXY = times_2(dXY) - (aXY + cXY) * Sk2s(0.5f);
1027 Sk2s bZZ = times_2(dZZ) - (aZZ + cZZ) * Sk2s(0.5f);
1031 Sk2s ww = bZZ / (aZZ * cZZ).sqrt();
1046 Sk2s p0 = from_point(fPts[0]);
1047 Sk2s p1 = from_point(fPts[1]);
1048 Sk2s p2 = from_point(fPts[2]);
1049 Sk2s ww(fW);
1051 Sk2s p20 = p2 - p0;
1052 Sk2s p10 = p1 - p0;
1054 Sk2s C = ww * p10;
1055 Sk2s A = ww * p20 - p20;
1056 Sk2s B = p20 - C - C;
1077 Sk2s scale = Sk2s(SkScalarInvert(SK_Scalar1 + fW));
1080 Sk2s p0 = from_point(fPts[0]);
1081 Sk2s p1 = from_point(fPts[1]);
1082 Sk2s p2 = from_point(fPts[2]);
1083 Sk2s ww(fW);
1085 Sk2s wp1 = ww * p1;
1086 Sk2s m = (p0 + times_2(wp1) + p2) * scale * Sk2s(0.5f);