/third_party/skia/include/core/ |
D | SkPoint3.h | 14 SkScalar fX, fY, fZ; member 24 SkScalar z() const { return fZ; } in z() 26 void set(SkScalar x, SkScalar y, SkScalar z) { fX = x; fY = y; fZ = z; } in set() 29 return a.fX == b.fX && a.fY == b.fY && a.fZ == b.fZ; 42 SkScalar length() const { return SkPoint3::Length(fX, fY, fZ); } in length() 54 p.set(scale * fX, scale * fY, scale * fZ); in makeScale() 63 fZ *= value; in scale() 73 neg.fZ = -fZ; 81 return { a.fX - b.fX, a.fY - b.fY, a.fZ - b.fZ }; 87 return { a.fX + b.fX, a.fY + b.fY, a.fZ + b.fZ }; [all …]
|
/third_party/flutter/skia/include/core/ |
D | SkPoint3.h | 14 SkScalar fX, fY, fZ; member 24 SkScalar z() const { return fZ; } in z() 26 void set(SkScalar x, SkScalar y, SkScalar z) { fX = x; fY = y; fZ = z; } in set() 29 return a.fX == b.fX && a.fY == b.fY && a.fZ == b.fZ; 42 SkScalar length() const { return SkPoint3::Length(fX, fY, fZ); } in length() 54 p.set(scale * fX, scale * fY, scale * fZ); in makeScale() 63 fZ *= value; in scale() 73 neg.fZ = -fZ; 82 v.set(a.fX - b.fX, a.fY - b.fY, a.fZ - b.fZ); 90 v.set(a.fX + b.fX, a.fY + b.fY, a.fZ + b.fZ); [all …]
|
/third_party/flutter/engine/flutter/flow/ |
D | matrix_decomposition.cc | 16 a_scale * a.fZ + b_scale * b.fZ, // in SkVector3Combine() 22 (a.fY * b.fZ) - (a.fZ * b.fY), // in SkVector3Cross() 23 (a.fZ * b.fX) - (a.fX * b.fZ), // in SkVector3Cross() 33 double mag = sqrt(v.fX * v.fX + v.fY * v.fY + v.fZ * v.fZ); in SkVector3Normalize() 37 v.fZ *= scale; in SkVector3Normalize() 108 shear_.fZ = row[1].dot(row[2]); in MatrixDecomposition() 109 row[2] = SkVector3Combine(row[2], 1.0, row[1], -shear_.fZ); in MatrixDecomposition() 111 scale_.fZ = row[2].length(); in MatrixDecomposition() 115 shear_.fY /= scale_.fZ; in MatrixDecomposition() 116 shear_.fZ /= scale_.fZ; in MatrixDecomposition() [all …]
|
D | matrix_decomposition_unittests.cc | 43 ASSERT_FLOAT_EQ(scale + 2, decomposition.scale().fZ); in TEST() 57 ASSERT_FLOAT_EQ(translate + 2, decomposition.translation().fZ); in TEST() 81 ASSERT_FLOAT_EQ(translate, decomposition.translation().fZ); in TEST() 85 ASSERT_FLOAT_EQ(scale, decomposition.scale().fZ); in TEST() 105 ASSERT_FLOAT_EQ(1.f, decomposition3.scale().fZ); in TEST() 136 ASSERT_FLOAT_EQ(1.f, decomposition.scale().fZ); in TEST() 143 ASSERT_FLOAT_EQ(1.f, decomposition2.scale().fZ); in TEST() 150 ASSERT_FLOAT_EQ(1.f, decomposition3.scale().fZ); in TEST()
|
/third_party/skia/src/core/ |
D | SkDrawShadowInfo.cpp | 18 return x*params.fX + y*params.fY + params.fZ; in compute_z() 26 return zPlaneParams.fX*x + zPlaneParams.fY*y + zPlaneParams.fZ; in GetSpotShadowTransform() 36 lightPos.fZ, lightRadius, radius, in GetSpotShadowTransform() 40 lightPos.fZ, lightRadius, radius, in GetSpotShadowTransform() 69 SkScalar dz = lightPos.fZ - pts3D[i].fZ; in GetSpotShadowTransform() 74 SkScalar zRatio = pts3D[i].fZ / dz; in GetSpotShadowTransform() 77 pts3D[i].fZ = SK_Scalar1; in GetSpotShadowTransform() 90 if (SkScalarNearlyZero(h2.fZ)) { in GetSpotShadowTransform() 108 shadowTransform->setAll(h0.fX / h2.fZ, h1.fX / h2.fZ, h2.fX / h2.fZ, in GetSpotShadowTransform() 109 h0.fY / h2.fZ, h1.fY / h2.fZ, h2.fY / h2.fZ, in GetSpotShadowTransform() [all …]
|
D | SkPoint3.cpp | 48 if (is_length_nearly_zero(fX, fY, fZ, &magSq)) { in normalize() 63 double zz = fZ; in normalize() 70 fZ *= scale; in normalize() 71 if (!sk_float_isfinite(fX) || !sk_float_isfinite(fY) || !sk_float_isfinite(fZ)) { in normalize()
|
/third_party/flutter/skia/src/core/ |
D | SkDrawShadowInfo.cpp | 17 return x*params.fX + y*params.fY + params.fZ; in compute_z() 24 return zPlaneParams.fX*x + zPlaneParams.fY*y + zPlaneParams.fZ; in GetSpotShadowTransform() 31 SkDrawShadowMetrics::GetSpotParams(occluderHeight, lightPos.fX, lightPos.fY, lightPos.fZ, in GetSpotShadowTransform() 59 SkScalar dz = lightPos.fZ - pts3D[i].fZ; in GetSpotShadowTransform() 64 SkScalar zRatio = pts3D[i].fZ / dz; in GetSpotShadowTransform() 67 pts3D[i].fZ = SK_Scalar1; in GetSpotShadowTransform() 80 if (SkScalarNearlyZero(h2.fZ)) { in GetSpotShadowTransform() 98 shadowTransform->setAll(h0.fX / h2.fZ, h1.fX / h2.fZ, h2.fX / h2.fZ, in GetSpotShadowTransform() 99 h0.fY / h2.fZ, h1.fY / h2.fZ, h2.fY / h2.fZ, in GetSpotShadowTransform() 100 h0.fZ / h2.fZ, h1.fZ / h2.fZ, 1); in GetSpotShadowTransform() [all …]
|
D | SkPoint3.cpp | 48 if (is_length_nearly_zero(fX, fY, fZ, &magSq)) { in normalize() 63 double zz = fZ; in normalize() 70 fZ *= scale; in normalize() 71 if (!sk_float_isfinite(fX) || !sk_float_isfinite(fY) || !sk_float_isfinite(fZ)) { in normalize()
|
D | SkNormalMapSource.cpp | 198 if (!SkScalarNearlyEqual(SkScalarAbs(tempNorm.fZ), 1.0f)) { in fillScanLine() 208 / (1.0f - SkScalarSquare(tempNorm.fZ)); in fillScanLine() 213 output[i].fZ = tempNorm.fZ; in fillScanLine() 215 output[i] = {0.0f, 0.0f, tempNorm.fZ}; in fillScanLine()
|
/third_party/flutter/skia/src/utils/ |
D | SkCamera.cpp | 36 SkScalar mag = SkScalarSqrt(fX*fX + fY*fY + fZ*fZ); in normalize() 41 unit->fZ = fZ * scale; in normalize() 43 unit->fX = unit->fY = unit->fZ = 0; in normalize() 49 return a.fX * b.fX + a.fY * b.fY + a.fZ * b.fZ; in Dot() 57 SkScalar x = a.fY * b.fZ - a.fZ * b.fY; in Cross() 58 SkScalar y = a.fZ * b.fX - a.fX * b.fY; in Cross() 86 SkScalar cx = fU.fY * fV.fZ - fU.fZ * fV.fY; in dotWith() 87 SkScalar cy = fU.fZ * fV.fX - fU.fX * fV.fY; in dotWith() 205 fObserver.set(0, 0, fLocation.fZ); in reset() 221 SkScalar dot = SkUnit3D::Dot(SkUnit3D{fZenith.fX, fZenith.fY, fZenith.fZ}, axis); in doUpdate() [all …]
|
D | Sk3D.cpp | 13 m->set(2, col, v.fZ); in set_col() 18 a.fY * b.fZ - a.fZ * b.fY, in cross() 19 a.fZ * b.fX - a.fX * b.fZ, in cross() 59 SkVector4 v = m4 * SkVector4{ src[i].fX, src[i].fY, src[i].fZ, 1 }; in Sk3MapPts()
|
D | SkShadowUtils.cpp | 131 if (fOccluderHeight != that.fOccluderHeight || fDevLightPos.fZ != that.fDevLightPos.fZ || in isCompatible() 169 SkPoint3 centerLightPos = SkPoint3::Make(devCenter.fX, devCenter.fY, fDevLightPos.fZ); in makeVertices() 481 result.fZ = pt.fZ; in map() 553 rec.fLightPos = { pt.fX, pt.fY, devLightPos.fZ }; in DrawShadow() 620 factory.fOccluderHeight = zPlaneParams.fZ; in drawShadow() 661 SkScalar devSpaceOutset = SkDrawShadowMetrics::AmbientBlurRadius(zPlaneParams.fZ); in drawShadow() 662 SkScalar oneOverA = SkDrawShadowMetrics::AmbientRecipAlpha(zPlaneParams.fZ); in drawShadow() 701 factory.fOccluderHeight = zPlaneParams.fZ; in drawShadow() 709 SkDrawShadowMetrics::GetSpotParams(zPlaneParams.fZ, devLightPos.fX - center.fX, in drawShadow() 710 devLightPos.fY - center.fY, devLightPos.fZ, in drawShadow()
|
/third_party/flutter/skia/docs/examples/ |
D | Matrix_mapHomogeneousPoints.cpp | 17 canvas->drawLine(s.fX / s.fZ, s.fY / s.fZ, e.fX / e.fZ, e.fY / e.fZ, paint); in draw()
|
/third_party/skia/docs/examples/ |
D | homogeneous.cpp | 16 canvas->drawLine(s.fX / s.fZ, s.fY / s.fZ, e.fX / e.fZ, e.fY / e.fZ, paint); in draw()
|
D | Matrix_mapHomogeneousPoints.cpp | 17 canvas->drawLine(s.fX / s.fZ, s.fY / s.fZ, e.fX / e.fZ, e.fY / e.fZ, paint); in draw()
|
/third_party/flutter/skia/samplecode/ |
D | SampleAndroidShadows.cpp | 195 zPlaneParams.fZ = SkTMax(1.0f, 2 + fZDelta); in onDrawContent() 201 zPlaneParams.fZ = SkTMax(1.0f, 8 + fZDelta); in onDrawContent() 207 zPlaneParams.fZ = SkTMax(1.0f, 12 + fZDelta); in onDrawContent() 213 zPlaneParams.fZ = SkTMax(1.0f, 64 + fZDelta); in onDrawContent() 219 zPlaneParams.fZ = SkTMax(1.0f, 8 + fZDelta); in onDrawContent() 225 zPlaneParams.fZ = SkTMax(1.0f, 16 + fZDelta); in onDrawContent() 231 zPlaneParams.fZ = SkTMax(1.0f, 8 + fZDelta); in onDrawContent() 237 zPlaneParams.fZ = SkTMax(1.0f, 2 + fZDelta); in onDrawContent() 243 zPlaneParams.fZ = SkTMax(1.0f, 16 + fZDelta); in onDrawContent() 255 zPlaneParams.fZ = SkTMax(1.0f, 32 + fZDelta); in onDrawContent() [all …]
|
D | SampleShadowReference.cpp | 139 zPlaneParams.fZ = kDP * 3; in onDrawContent() 150 zPlaneParams.fZ = kDP * 4; in onDrawContent() 161 zPlaneParams.fZ = kDP * 6; in onDrawContent() 172 zPlaneParams.fZ = kDP * 8; in onDrawContent() 183 zPlaneParams.fZ = kDP * 16; in onDrawContent()
|
/third_party/skia/samplecode/ |
D | SampleAndroidShadows.cpp | 194 zPlaneParams.fZ = std::max(1.0f, 2 + fZDelta); in onDrawContent() 200 zPlaneParams.fZ = std::max(1.0f, 8 + fZDelta); in onDrawContent() 206 zPlaneParams.fZ = std::max(1.0f, 12 + fZDelta); in onDrawContent() 212 zPlaneParams.fZ = std::max(1.0f, 64 + fZDelta); in onDrawContent() 218 zPlaneParams.fZ = std::max(1.0f, 8 + fZDelta); in onDrawContent() 224 zPlaneParams.fZ = std::max(1.0f, 16 + fZDelta); in onDrawContent() 230 zPlaneParams.fZ = std::max(1.0f, 8 + fZDelta); in onDrawContent() 236 zPlaneParams.fZ = std::max(1.0f, 2 + fZDelta); in onDrawContent() 242 zPlaneParams.fZ = std::max(1.0f, 16 + fZDelta); in onDrawContent() 254 zPlaneParams.fZ = std::max(1.0f, 32 + fZDelta); in onDrawContent() [all …]
|
D | SampleMaterialShadows.cpp | 76 zPlaneParams.fZ = elevations[i]; in onDrawContent() 86 zPlaneParams.fZ = elevations[i]; in onDrawContent() 96 zPlaneParams.fZ = elevations[i]; in onDrawContent() 106 zPlaneParams.fZ = elevations[i]; in onDrawContent() 117 zPlaneParams.fZ = elevations[i]; in onDrawContent() 130 zPlaneParams.fZ = elevations[i]; in onDrawContent()
|
D | SampleShadowReference.cpp | 139 zPlaneParams.fZ = kDP * 3; in onDrawContent() 150 zPlaneParams.fZ = kDP * 4; in onDrawContent() 161 zPlaneParams.fZ = kDP * 6; in onDrawContent() 172 zPlaneParams.fZ = kDP * 8; in onDrawContent() 183 zPlaneParams.fZ = kDP * 16; in onDrawContent()
|
/third_party/flutter/skia/bench/ |
D | Matrix44Bench.cpp | 92 fX = fY = fZ = SkDoubleToMScalar(1.5); in PreScaleMatrix44Bench() 98 fM0.preScale(fX, fY, fZ); in performTest() 103 SkMScalar fX, fY, fZ; member in PreScaleMatrix44Bench 220 fX = fY = fZ = SkDoubleToMScalar(1.5); in PostScaleMatrix44Bench() 226 fM0.postScale(fX, fY, fZ); in performTest() 231 SkMScalar fX, fY, fZ; member in PostScaleMatrix44Bench
|
/third_party/flutter/skia/include/utils/ |
D | SkCamera.h | 19 SkScalar fX, fY, fZ; member 22 fX = x; fY = y; fZ = z; in set() 29 SkScalar fX, fY, fZ; member 32 fX = x; fY = y; fZ = z; in set() 84 return this->dotWith(v.fX, v.fY, v.fZ); in dotWith()
|
/third_party/flutter/skia/src/sksl/ |
D | SkSLCPP.h | 23 , fZ(z) in Float4() 27 return SkRect::MakeLTRB(fX, fY, fZ, fW); in SkRect() 33 float fZ; member
|
/third_party/flutter/skia/modules/skottie/src/ |
D | SkottieAdapter.cpp | 88 fZ = v.size() > 2 ? v[2] : 0; in Vec3() 103 t.setTranslate(-fAnchorPoint.fX, -fAnchorPoint.fY, -fAnchorPoint.fZ); in totalMatrix() 104 t.postScale(fScale.fX / 100, fScale.fY / 100, fScale.fZ / 100); in totalMatrix() 107 r.setRotateDegreesAbout(0, 0, 1, fRotation.fZ); in totalMatrix() 114 t.postTranslate(fPosition.fX, fPosition.fY, fPosition.fZ); in totalMatrix() 137 -this->getPosition().fZ }, in totalMatrix() 140 -this->getAnchorPoint().fZ }, in totalMatrix() 154 rot.setRotateDegreesAbout(0, 0, 1, -this->getRotation().fZ); in totalMatrix()
|
/third_party/flutter/skia/src/shaders/ |
D | SkLightingShader.cpp | 345 if (color.fZ <= 0.0f) { in convert() 346 color.fZ = 0.0f; in convert() 347 } else if (color.fZ >= 255.0f) { in convert() 348 color.fZ = 255.0f; in convert() 351 return SkPreMultiplyARGB(a, (int) color.fX, (int) color.fY, (int) color.fZ); in convert() 385 accum.fZ += lightShader.fLights->ambientLightColor().fZ * SkColorGetB(diffColor); in shadeSpan() 402 accum.fZ += light.color().fZ * SkColorGetB(diffColor) * illuminanceScalingFactor; in shadeSpan()
|