Searched refs:Sk2s (Results 1 – 6 of 6) sorted by relevance
14 static inline Sk2s from_point(const SkPoint& point) { in from_point()15 return Sk2s::Load(&point); in from_point()18 static inline SkPoint to_point(const Sk2s& x) { in to_point()24 static Sk2s times_2(const Sk2s& value) { in times_2()275 SkQuadCoeff(const Sk2s& A, const Sk2s& B, const Sk2s& C) in SkQuadCoeff()284 Sk2s P1 = from_point(src[1]); in SkQuadCoeff()285 Sk2s P2 = from_point(src[2]); in SkQuadCoeff()290 Sk2s eval(SkScalar t) { in eval()291 Sk2s tt(t); in eval()295 Sk2s eval(const Sk2s& tt) { in eval()[all …]
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()[all …]
224 Sk2s t(0); in hairquad()225 Sk2s dt(SK_Scalar1 / lines); in hairquad()231 Sk2s A = coeff.fA; in hairquad()232 Sk2s B = coeff.fB; in hairquad()233 Sk2s C = coeff.fC; in hairquad()242 static inline Sk2s abs(const Sk2s& value) { in abs()243 return Sk2s::Max(value, Sk2s(0)-value); in abs()246 static inline SkScalar max_component(const Sk2s& value) { in max_component()253 Sk2s p0 = from_point(pts[0]); in compute_cubic_segs()254 Sk2s p1 = from_point(pts[1]); in compute_cubic_segs()[all …]
190 typedef SkNx<2, SkScalar> Sk2s; typedef
52 Sk2s h = Sk2s(1.f / fDivisions); in restart()53 Sk2s h2 = h * h; in restart()54 Sk2s h3 = h2 * h; in restart()55 Sk2s fwDiff3 = Sk2s(6) * fCoefs.fA * h3; in restart()
39 …ou that it can work with vectors of `SkScalar` (a Skia-specific float typedef) too: `Sk2s`, `Sk4s`.