/third_party/skia/include/core/ |
H A D | SkM44.h | 51 struct SK_API SkV3 { struct 54 bool operator==(const SkV3& v) const { in operator ==() 57 bool operator!=(const SkV3& v) const { return !(*this == v); } in operator !=() 59 static SkScalar Dot(const SkV3& a, const SkV3& b) { return a.x*b.x + a.y*b.y + a.z*b.z; } in Dot() 60 static SkV3 Cross(const SkV3& a, const SkV3& b) { in Cross() 63 static SkV3 Normalize(const SkV3 in Cross() [all...] |
/third_party/skia/include/utils/ |
H A D | SkCamera.h | 34 SkScalar dotWith(const SkV3& v) const { in dotWith() 44 SkV3 fU, fV; 45 SkV3 fOrigin; 59 SkV3 fLocation; // origin of the camera's space 60 SkV3 fAxis; // view direction 61 SkV3 fZenith; // up direction 62 SkV3 fObserver; // eye position (may not be the same as the origin)
|
/third_party/skia/modules/skottie/src/ |
H A D | Camera.cpp | 19 SkM44 ComputeCameraMatrix(const SkV3& position, in ComputeCameraMatrix() 20 const SkV3& poi, in ComputeCameraMatrix() 21 const SkV3& rotation, in ComputeCameraMatrix() 86 SkV3 CameraAdaper::poi(const SkV3& pos) const { in poi() 110 const SkV3 pos = { center.fX, center.fY, -kDefaultAEZoom }, in DefaultCameraTransform()
|
H A D | Transform.cpp | 164 SkV3 TransformAdapter3D::anchor_point() const { in anchor_point() 168 SkV3 TransformAdapter3D::position() const { in position() 172 SkV3 TransformAdapter3D::rotation() const { in rotation() 174 return static_cast<SkV3>(fOrientation) + SkV3{ fRx, fRy, fRz }; in rotation() 180 scale = static_cast<SkV3>(fScale), in totalMatrix()
|
H A D | Transform.h | 84 SkV3 anchor_point() const; 85 SkV3 position() const; 86 SkV3 rotation() const;
|
H A D | Camera.h | 35 SkV3 poi(const SkV3& pos) const;
|
H A D | SkottieValue.h | 31 operator SkV3() const;
|
/third_party/skia/samplecode/ |
H A D | Sample3D.cpp | 35 SkV3 computeUnitV3(SkV2 v) const { in computeUnitV3() 47 SkV3 fAxis; 52 SkV3 u = this->computeUnitV3(a); in computeRotationInfo() 53 SkV3 v = this->computeUnitV3(b); in computeRotationInfo() 54 SkV3 axis = u.cross(v); in computeRotationInfo() 89 SkV3 fEye { 0, 0, 1.0f/tan(fAngle/2) - 1 }; 90 SkV3 fCOA { 0, 0, 0 }; 91 SkV3 fUp { 0, 1, 0 }; 112 static SkM44 R(SkV3 axis, SkScalar rad) { in R() 153 SkV3 computeWorldPo [all...] |
H A D | SampleClip.cpp | 434 SkV3 fEye { 0, 0, 1.0f/tan(fAngle/2) - 1 }; 435 SkV3 fCOA { 0, 0, 0 }; 436 SkV3 fUp { 0, 1, 0 }; 439 SkV3 fTrans;
|
/third_party/skia/src/core/ |
H A D | SkM44.cpp | 264 SkM44& SkM44::setRotateUnitSinCos(SkV3 axis, SkScalar sinAngle, SkScalar cosAngle) { in setRotateUnitSinCos() 281 SkM44& SkM44::setRotate(SkV3 axis, SkScalar radians) { in setRotate() 344 static SkV3 normalize(SkV3 v) { return v * (1.0f / v.length()); } in normalize() 346 static SkV4 v4(SkV3 v, SkScalar w) { return {v.x, v.y, v.z, w}; } in v4() 348 SkM44 SkM44::LookAt(const SkV3& eye, const SkV3& center, const SkV3& up) { in LookAt() 349 SkV3 f = normalize(center - eye); in LookAt() 350 SkV3 in LookAt() [all...] |
/third_party/skia/gm/ |
H A D | 3d.cpp | 17 SkV3 fEye { 0, 0, 1.0f/tan(fAngle/2) - 1 }; 18 SkV3 fCOA { 0, 0, 0 }; 19 SkV3 fUp { 0, 1, 0 };
|
/third_party/skia/modules/skottie/src/text/ |
H A D | TextAnimator.cpp | 120 modulated_props.position += static_cast<SkV3>(fTextProps.position) * amount; in modulateProps() 123 modulated_props.scale *= SkV3{1,1,1} + in modulateProps() 124 (static_cast<SkV3>(fTextProps.scale) * 0.01f - SkV3{1,1,1}) * amount; in modulateProps()
|
H A D | TextAnimator.h | 40 SkV3 rotation = { 0, 0, 0 }; 50 SkV3 position = { 0, 0, 0 },
|
H A D | TextAdapter.cpp | 677 const SkV3 pos = { in fragmentMatrix()
|
/third_party/skia/tests/ |
H A D | M44Test.cpp | 72 SkV3 a = {1, 2, 3}, in DEF_TEST() 79 REPORTER_ASSERT(reporter, (a.cross(b) == SkV3{-2, 1, 0})); in DEF_TEST() 80 REPORTER_ASSERT(reporter, (b.cross(a) == SkV3{ 2, -1, 0})); in DEF_TEST() 89 SkV3 c = m * a; in DEF_TEST() 90 REPORTER_ASSERT(reporter, (c == SkV3{2, 2, 9})); in DEF_TEST() 137 const SkV3 x = {1, 0, 0}, in DEF_TEST() 147 SkV3 aboutAxis; in DEF_TEST() 148 SkV3 expectedX, expectedY, expectedZ; in DEF_TEST()
|
H A D | SkSLInterpreterTest.cpp | 817 SkV3 cross = SkV3::Cross({args[0], args[1], args[2]}, in DEF_TEST()
|
/third_party/skia/modules/skottie/src/effects/ |
H A D | SphereEffect.cpp | 169 SG_ATTRIBUTE(LightVec , SkV3 , fLightVec ) 170 SG_ATTRIBUTE(LightColor , SkV3 , fLightColor ) 273 SkV3 fLightVec = {0,0,1}, 369 return SkV3{x,y,z};
|
/third_party/skia/tools/viewer/ |
H A D | SkSLSlide.h | 52 SkV3 fResolution = { 1, 1, 1 };
|
/third_party/skia/modules/androidkit/src/ |
H A D | RuntimeShaderBuilder.cpp | 45 builder->uniform(androidkit::utils::CString(env, jname)) = SkV3{valX, valY, valZ}; in ShaderBuilder_SetUniformFloat3()
|
/third_party/skia/src/utils/ |
H A D | SkCamera.cpp | 73 SkV3 axis, zenith, cross; in doUpdate() 122 SkV3 diff = quilt.fOrigin - fLocation; in patchToMatrix()
|
/third_party/skia/modules/skottie/src/animator/ |
H A D | VectorKeyframeAnimator.cpp | 38 VectorValue::operator SkV3() const { in operator SkV3() 40 return SkV3 { in operator SkV3()
|