Home
last modified time | relevance | path

Searched refs:SkV2 (Results 1 – 25 of 28) sorted by relevance

12

/external/skia/include/core/
DSkM44.h15 struct SK_API SkV2 { struct
18 bool operator==(const SkV2 v) const { return x == v.x && y == v.y; } argument
19 bool operator!=(const SkV2 v) const { return !(*this == v); }
21 static SkScalar Dot(SkV2 a, SkV2 b) { return a.x * b.x + a.y * b.y; } in Dot() argument
22 static SkScalar Cross(SkV2 a, SkV2 b) { return a.x * b.y - a.y * b.x; } in Cross() argument
23 static SkV2 Normalize(SkV2 v) { return v * (1.0f / v.length()); } in Normalize() argument
25 SkV2 operator-() const { return {-x, -y}; }
26 SkV2 operator+(SkV2 v) const { return {x+v.x, y+v.y}; }
27 SkV2 operator-(SkV2 v) const { return {x-v.x, y-v.y}; }
29 SkV2 operator*(SkV2 v) const { return {x*v.x, y*v.y}; }
[all …]
/external/skia/samplecode/
DSample3D.cpp18 SkV2 fCenter;
21 VSphere(SkV2 center, SkScalar radius) : fCenter(center), fRadius(radius) {} in VSphere()
23 bool contains(SkV2 v) const { in contains()
27 SkV2 pinLoc(SkV2 p) const { in pinLoc()
35 SkV3 computeUnitV3(SkV2 v) const { in computeUnitV3()
51 RotateInfo computeRotationInfo(SkV2 a, SkV2 b) const { in computeRotationInfo()
63 SkM44 computeRotation(SkV2 a, SkV2 b) const { in computeRotation()
149 SkV2 fLoc;
316 SkV2 p = fLight.fLoc - SkV2{x, y}; in onFindClickHandler()
/external/skia/experimental/skrive/include/
DSkRive.h110 ACTOR_ATTR(Translation , SkV2 , SkV2({0, 0}))
111 ACTOR_ATTR(Scale , SkV2 , SkV2({1, 1}))
293 ACTOR_ATTR(Size , SkV2 , SkV2({0,0}) )
294 ACTOR_ATTR(Origin , SkV2 , SkV2({0,0}) )
295 ACTOR_ATTR(Translation , SkV2 , SkV2({0,0}) )
/external/skia/modules/skottie/src/animator/
DVec2KeyframeAnimator.cpp69 auto check_vecs = [](const SkV2& v0, const SkV2& v1) { in backfill_spatial()
114 fTi = ParseDefault<SkV2>(jkf["ti"], {0,0}); in parseKFValue()
115 fTo = ParseDefault<SkV2>(jkf["to"], {0,0}); in parseKFValue()
116 fPendingSpatial = fTi != SkV2{0,0} || fTo != SkV2{0,0}; in parseKFValue()
130 SkV2 fTi{0,0},
DAnimator.h15 struct SkV2;
61 SkV2* v, float* orientation);
/external/skia/modules/skottie/src/text/
DTextAdapter.h72 const SkV2&, const TextAnimator::DomainSpan*) const;
76 const SkV2& line_offset,
79 SkV2 fragmentAnchorPoint(const FragmentRec&, const SkV2&,
DTextAdapter.cpp367 SkV2 line_offset = { 0, 0 }; // cumulative line spacing in onSync()
371 SkV2 line_spacing = { 0, 0 }; in onSync()
405 if (line_offset != SkV2{0, 0} || line_has_tracking) { in onSync()
412 SkV2 TextAdapter::fragmentAnchorPoint(const FragmentRec& rec, in fragmentAnchorPoint()
413 const SkV2& grouping_alignment, in fragmentAnchorPoint()
461 const auto ap = SkV2 { ab.centerX() + ab.width() * 0.5f * grouping_alignment.x, in fragmentAnchorPoint()
465 return ap - SkV2 { rec.fOrigin.fX, rec.fOrigin.fY }; in fragmentAnchorPoint()
470 const SkV2& grouping_alignment, in pushPropsToFragment()
502 const SkV2& line_offset, in adjustLineProps()
DTextAnimator.h55 SkV2 blur = { 0, 0 },
/external/skia/modules/skottie/src/layers/shapelayer/
DRepeater.cpp33 SG_ATTRIBUTE(AnchorPoint , SkV2 , fAnchorPoint )
34 SG_ATTRIBUTE(Position , SkV2 , fPosition )
35 SG_ATTRIBUTE(Scale , SkV2 , fScale )
107 SkV2 fAnchorPoint = {0,0},
DPolystar.cpp47 const auto pt_on_circle = [](const SkV2& c, SkScalar r, SkScalar a) { in onSync()
/external/skia/tests/
DM44Test.cpp191 SkV2 dstScales[] = { in DEF_TEST()
203 auto map2d = [&](const SkM44& m, SkV2 p) { in DEF_TEST()
207 return SkV2{mapped.x, mapped.y}; in DEF_TEST()
237 SkV2 center = map2d(m, {src.centerX(), src.centerY()}); in DEF_TEST()
242 SkV2 tl = map2d(m, {src.fLeft, src.fTop}); in DEF_TEST()
243 SkV2 tr = map2d(m, {src.fRight, src.fTop}); in DEF_TEST()
244 SkV2 br = map2d(m, {src.fRight, src.fBottom}); in DEF_TEST()
245 SkV2 bl = map2d(m, {src.fLeft, src.fBottom}); in DEF_TEST()
/external/skia/experimental/skrive/src/reader/
DStreamReader.cpp56 SkV2 StreamReader::readV2(const char label[]) { in readV2()
57 SkV2 v2{0,0}; in readV2()
DStreamReader.h77 SkV2 readV2(const char label[]);
/external/skia/experimental/skrive/tests/
DBinaryReader.cpp53 REPORTER_ASSERT(reporter, sr->readV2("translation") == (SkV2{0,0})); in DEF_TEST()
56 REPORTER_ASSERT(reporter, sr->readV2("origin") == (SkV2{0,0})); in DEF_TEST()
DJsonReader.cpp43 REPORTER_ASSERT(reporter, sr->readV2("translation") == (SkV2{24,42})); in DEF_TEST()
46 REPORTER_ASSERT(reporter, sr->readV2("origin") == (SkV2{100,100})); in DEF_TEST()
/external/skia/modules/svg/src/
DSkSVGNode.cpp138 auto compute_scale = [&]() -> SkV2 { in ComputeViewboxMatrix()
154 auto compute_trans = [&](const SkV2& scale) -> SkV2 { in ComputeViewboxMatrix()
DSkSVGFeOffset.cpp23 const auto d = SkV2{this->getDx(), this->getDy()} in onMakeImageFilter()
DSkSVGFeGaussianBlur.cpp23 const auto sigma = SkV2{fStdDeviation.fX, fStdDeviation.fY} in onMakeImageFilter()
DSkSVGFeMorphology.cpp29 const auto r = SkV2{fRadius.fX, fRadius.fY} in onMakeImageFilter()
/external/skia/modules/skottie/src/
DSkottieJson.cpp88 bool Parse<SkV2>(const Value& v, SkV2* v2) { in Parse()
DSkottieValue.h23 using Vec2Value = SkV2;
/external/skia/modules/skottie/src/effects/
DFractalNoiseEffect.cpp393 ? SkV2{fScale, fScale} in shaderMatrix()
394 : SkV2{fScaleWidth, fScaleHeight}; in shaderMatrix()
DDisplacementMapEffect.cpp110 SG_ATTRIBUTE(Scale , SkV2 , fScale )
292 SkV2 fScale = { 0, 0 };
DShadowStyles.cpp48 const auto offset = SkV2{ fDistance * SkScalarCos(rad), in onSync()
/external/skia/modules/svg/include/
DSkSVGRenderContext.h144 SkV2 offset, scale;

12