• Home
  • Raw
  • Download

Lines Matching refs:Sk2s

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