Home
last modified time | relevance | path

Searched refs:fZ (Results 1 – 25 of 235) sorted by relevance

12345678910

/external/skia/include/core/
DSkPoint3.h14 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 …]
/external/skqp/include/core/
DSkPoint3.h14 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 …]
/external/skia/src/utils/
DSkCamera.cpp36 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()
225 zenith.fZ = fZenith.fZ - dot * axis.fZ; in doUpdate()
[all …]
DSkShadowUtils.cpp135 if (fOccluderHeight != that.fOccluderHeight || fDevLightPos.fZ != that.fDevLightPos.fZ || in isCompatible()
174 SkPoint3 centerLightPos = SkPoint3::Make(devCenter.fX, devCenter.fY, fDevLightPos.fZ); in makeVertices()
460 result.fZ = pt.fZ; in map()
532 rec.fLightPos = { pt.fX, pt.fY, devLightPos.fZ }; in DrawShadow()
592 factory.fOccluderHeight = zPlaneParams.fZ; in drawShadow()
633 SkScalar devSpaceOutset = SkDrawShadowMetrics::AmbientBlurRadius(zPlaneParams.fZ); in drawShadow()
634 SkScalar oneOverA = SkDrawShadowMetrics::AmbientRecipAlpha(zPlaneParams.fZ); in drawShadow()
673 factory.fOccluderHeight = zPlaneParams.fZ; in drawShadow()
681 SkDrawShadowMetrics::GetSpotParams(zPlaneParams.fZ, devLightPos.fX - center.fX, in drawShadow()
682 devLightPos.fY - center.fY, devLightPos.fZ, in drawShadow()
[all …]
/external/skqp/src/utils/
DSkCamera.cpp36 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()
225 zenith.fZ = fZenith.fZ - dot * axis.fZ; in doUpdate()
[all …]
DSkShadowUtils.cpp134 if (fOccluderHeight != that.fOccluderHeight || fDevLightPos.fZ != that.fDevLightPos.fZ || in isCompatible()
173 SkPoint3 centerLightPos = SkPoint3::Make(devCenter.fX, devCenter.fY, fDevLightPos.fZ); in makeVertices()
457 result.fZ = pt.fZ; in map()
529 rec.fLightPos = { pt.fX, pt.fY, devLightPos.fZ }; in DrawShadow()
575 factory.fOccluderHeight = zPlaneParams.fZ; in drawShadow()
605 SkScalar occluderHeight = zPlaneParams.fZ; in drawShadow()
606 float zRatio = SkTPin(occluderHeight / (devLightPos.fZ - occluderHeight), 0.0f, 0.95f); in drawShadow()
610 SkScalar scale = devLightPos.fZ / (devLightPos.fZ - occluderHeight); in drawShadow()
/external/skia/src/core/
DSkColorSpace.cpp35 XYZ.fX = primariesInv[0] * wXYZ.fX + primariesInv[1] * wXYZ.fY + primariesInv[2] * wXYZ.fZ; in toXYZD50()
36 XYZ.fY = primariesInv[3] * wXYZ.fX + primariesInv[4] * wXYZ.fY + primariesInv[5] * wXYZ.fZ; in toXYZD50()
37 XYZ.fZ = primariesInv[6] * wXYZ.fX + primariesInv[7] * wXYZ.fY + primariesInv[8] * wXYZ.fZ; in toXYZD50()
41 0.0f, 0.0f, XYZ.fZ); in toXYZD50()
59 srcCone.fX = mA[0] * wXYZ.fX + mA[1] * wXYZ.fY + mA[2] * wXYZ.fZ; in toXYZD50()
60 srcCone.fY = mA[3] * wXYZ.fX + mA[4] * wXYZ.fY + mA[5] * wXYZ.fZ; in toXYZD50()
61 srcCone.fZ = mA[6] * wXYZ.fX + mA[7] * wXYZ.fY + mA[8] * wXYZ.fZ; in toXYZD50()
63 dstCone.fX = mA[0] * wXYZD50.fX + mA[1] * wXYZD50.fY + mA[2] * wXYZD50.fZ; in toXYZD50()
64 dstCone.fY = mA[3] * wXYZD50.fX + mA[4] * wXYZD50.fY + mA[5] * wXYZD50.fZ; in toXYZD50()
65 dstCone.fZ = mA[6] * wXYZD50.fX + mA[7] * wXYZD50.fY + mA[8] * wXYZD50.fZ; in toXYZD50()
[all …]
DSkPoint3.cpp48 if (is_length_nearly_zero(fX, fY, fZ, &magSq)) { in normalize()
62 double zz = fZ; in normalize()
70 fZ = z * dscale; in normalize()
78 fZ *= scale; in normalize()
DSkDrawShadowInfo.cpp16 return x*params.fX + y*params.fY + params.fZ; in compute_z()
24 occluderZ = rec.fZPlaneParams.fZ; in GetLocalBounds()
49 rec.fLightPos.fZ, rec.fLightRadius, in GetLocalBounds()
60 rec.fLightPos.fZ, rec.fLightRadius, in GetLocalBounds()
/external/skqp/src/core/
DSkColorSpace.cpp35 XYZ.fX = primariesInv[0] * wXYZ.fX + primariesInv[1] * wXYZ.fY + primariesInv[2] * wXYZ.fZ; in toXYZD50()
36 XYZ.fY = primariesInv[3] * wXYZ.fX + primariesInv[4] * wXYZ.fY + primariesInv[5] * wXYZ.fZ; in toXYZD50()
37 XYZ.fZ = primariesInv[6] * wXYZ.fX + primariesInv[7] * wXYZ.fY + primariesInv[8] * wXYZ.fZ; in toXYZD50()
41 0.0f, 0.0f, XYZ.fZ); in toXYZD50()
59 srcCone.fX = mA[0] * wXYZ.fX + mA[1] * wXYZ.fY + mA[2] * wXYZ.fZ; in toXYZD50()
60 srcCone.fY = mA[3] * wXYZ.fX + mA[4] * wXYZ.fY + mA[5] * wXYZ.fZ; in toXYZD50()
61 srcCone.fZ = mA[6] * wXYZ.fX + mA[7] * wXYZ.fY + mA[8] * wXYZ.fZ; in toXYZD50()
63 dstCone.fX = mA[0] * wXYZD50.fX + mA[1] * wXYZD50.fY + mA[2] * wXYZD50.fZ; in toXYZD50()
64 dstCone.fY = mA[3] * wXYZD50.fX + mA[4] * wXYZD50.fY + mA[5] * wXYZD50.fZ; in toXYZD50()
65 dstCone.fZ = mA[6] * wXYZD50.fX + mA[7] * wXYZD50.fY + mA[8] * wXYZD50.fZ; in toXYZD50()
[all …]
DSkPoint3.cpp48 if (is_length_nearly_zero(fX, fY, fZ, &magSq)) { in normalize()
62 double zz = fZ; in normalize()
70 fZ = z * dscale; in normalize()
78 fZ *= scale; in normalize()
DSkDrawShadowInfo.cpp16 return x*params.fX + y*params.fY + params.fZ; in compute_z()
24 occluderZ = rec.fZPlaneParams.fZ; in GetLocalBounds()
49 rec.fLightPos.fZ, rec.fLightRadius, in GetLocalBounds()
60 rec.fLightPos.fZ, rec.fLightRadius, in GetLocalBounds()
/external/skia/src/sksl/
DSkSLCPP.h22 , fZ(z) in Float4()
26 return SkRect::MakeLTRB(fX, fY, fZ, fW); in SkRect()
30 return GrColor4f(fX, fY, fZ, fW); in GrColor4f()
36 float fZ; member
/external/skqp/src/sksl/
DSkSLCPP.h22 , fZ(z) in Float4()
26 return SkRect::MakeLTRB(fX, fY, fZ, fW); in SkRect()
30 return GrColor4f(fX, fY, fZ, fW); in GrColor4f()
36 float fZ; member
/external/skqp/include/utils/
DSkCamera.h18 SkScalar fX, fY, fZ; member
21 fX = x; fY = y; fZ = z; in set()
28 SkScalar fX, fY, fZ; member
31 fX = x; fY = y; fZ = z; in set()
83 return this->dotWith(v.fX, v.fY, v.fZ); in dotWith()
/external/skia/include/utils/
DSkCamera.h18 SkScalar fX, fY, fZ; member
21 fX = x; fY = y; fZ = z; in set()
28 SkScalar fX, fY, fZ; member
31 fX = x; fY = y; fZ = z; in set()
83 return this->dotWith(v.fX, v.fY, v.fZ); in dotWith()
/external/skia/samplecode/
DSampleAndroidShadows.cpp189 zPlaneParams.fZ = SkTMax(1.0f, 2 + fZDelta); in onDrawContent()
195 zPlaneParams.fZ = SkTMax(1.0f, 8 + fZDelta); in onDrawContent()
201 zPlaneParams.fZ = SkTMax(1.0f, 12 + fZDelta); in onDrawContent()
207 zPlaneParams.fZ = SkTMax(1.0f, 64 + fZDelta); in onDrawContent()
213 zPlaneParams.fZ = SkTMax(1.0f, 8 + fZDelta); in onDrawContent()
219 zPlaneParams.fZ = SkTMax(1.0f, 16 + fZDelta); in onDrawContent()
231 zPlaneParams.fZ = SkTMax(1.0f, 32 + fZDelta); in onDrawContent()
DSampleShadowReference.cpp146 zPlaneParams.fZ = kDP * 3; in onDrawContent()
157 zPlaneParams.fZ = kDP * 4; in onDrawContent()
168 zPlaneParams.fZ = kDP * 6; in onDrawContent()
179 zPlaneParams.fZ = kDP * 8; in onDrawContent()
190 zPlaneParams.fZ = kDP * 16; in onDrawContent()
/external/skqp/samplecode/
DSampleAndroidShadows.cpp188 zPlaneParams.fZ = SkTMax(1.0f, 2 + fZDelta); in onDrawContent()
194 zPlaneParams.fZ = SkTMax(1.0f, 8 + fZDelta); in onDrawContent()
200 zPlaneParams.fZ = SkTMax(1.0f, 12 + fZDelta); in onDrawContent()
206 zPlaneParams.fZ = SkTMax(1.0f, 64 + fZDelta); in onDrawContent()
212 zPlaneParams.fZ = SkTMax(1.0f, 8 + fZDelta); in onDrawContent()
218 zPlaneParams.fZ = SkTMax(1.0f, 16 + fZDelta); in onDrawContent()
230 zPlaneParams.fZ = SkTMax(1.0f, 32 + fZDelta); in onDrawContent()
DSampleShadowReference.cpp143 zPlaneParams.fZ = kDP * 3; in onDrawContent()
154 zPlaneParams.fZ = kDP * 4; in onDrawContent()
165 zPlaneParams.fZ = kDP * 6; in onDrawContent()
176 zPlaneParams.fZ = kDP * 8; in onDrawContent()
187 zPlaneParams.fZ = kDP * 16; in onDrawContent()
/external/skqp/bench/
DMatrix44Bench.cpp97 fX = fY = fZ = SkDoubleToMScalar(1.5); in PreScaleMatrix44Bench()
103 fM0.preScale(fX, fY, fZ); in performTest()
108 SkMScalar fX, fY, fZ; member in PreScaleMatrix44Bench
234 fX = fY = fZ = SkDoubleToMScalar(1.5); in PostScaleMatrix44Bench()
240 fM0.postScale(fX, fY, fZ); in performTest()
245 SkMScalar fX, fY, fZ; member in PostScaleMatrix44Bench
/external/skia/bench/
DMatrix44Bench.cpp97 fX = fY = fZ = SkDoubleToMScalar(1.5); in PreScaleMatrix44Bench()
103 fM0.preScale(fX, fY, fZ); in performTest()
108 SkMScalar fX, fY, fZ; member in PreScaleMatrix44Bench
234 fX = fY = fZ = SkDoubleToMScalar(1.5); in PostScaleMatrix44Bench()
240 fM0.postScale(fX, fY, fZ); in performTest()
245 SkMScalar fX, fY, fZ; member in PostScaleMatrix44Bench
/external/clang/test/CodeGenCXX/
Dconversion-function.cpp30 operator X() { printf("perator X()\n"); x.iX += iZ; x.fX += fZ; return x; } in operator X()
32 float fZ; member
33 Z() : iZ(1), fZ(1.00) {} in Z()
/external/swiftshader/third_party/PowerVR_SDK/Tools/
DPVRTMatrix.h276 const float fZ);
289 const int fZ);
303 const float fZ);
317 const int fZ);
/external/skqp/tests/
DPoint3Test.cpp117 SkScalar fZ; in DEF_TEST() member
127 test_length(reporter, gRec[i].fX, gRec[i].fY, gRec[i].fZ, gRec[i].fLength); in DEF_TEST()
128 test_normalize(reporter, gRec[i].fX, gRec[i].fY, gRec[i].fZ, gRec[i].fLength); in DEF_TEST()

12345678910