Lines Matching refs:SkScalar
10 static SkScalar SkScalarDotDiv(int count, const SkScalar a[], int step_a, in SkScalarDotDiv()
11 const SkScalar b[], int step_b, in SkScalarDotDiv()
12 SkScalar denom) { in SkScalarDotDiv()
13 SkScalar prod = 0; in SkScalarDotDiv()
22 static SkScalar SkScalarDot(int count, const SkScalar a[], int step_a, in SkScalarDot()
23 const SkScalar b[], int step_b) { in SkScalarDot()
24 SkScalar prod = 0; in SkScalarDot()
35 SkScalar SkPoint3D::normalize(SkUnit3D* unit) const { in normalize()
36 SkScalar mag = SkScalarSqrt(fX*fX + fY*fY + fZ*fZ); in normalize()
38 SkScalar scale = SkScalarInvert(mag); in normalize()
48 SkScalar SkUnit3D::Dot(const SkUnit3D& a, const SkUnit3D& b) { 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()
59 SkScalar z = a.fX * b.fY - a.fY * b.fX; in Cross()
85 SkScalar SkPatch3D::dotWith(SkScalar dx, SkScalar dy, SkScalar dz) const { in dotWith()
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()
88 SkScalar cz = fU.fX * fV.fY - fU.fY * fV.fX; in dotWith()
100 void SkMatrix3D::setTranslate(SkScalar x, SkScalar y, SkScalar z) { in setTranslate()
107 void SkMatrix3D::setRotateX(SkScalar degX) { in setRotateX()
108 SkScalar s, c; in setRotateX()
116 void SkMatrix3D::setRotateY(SkScalar degY) { in setRotateY()
117 SkScalar s, c; in setRotateY()
125 void SkMatrix3D::setRotateZ(SkScalar degZ) { in setRotateZ()
126 SkScalar s, c; in setRotateZ()
134 void SkMatrix3D::preTranslate(SkScalar x, SkScalar y, SkScalar z) { in preTranslate()
135 SkScalar col[3] = { x, y, z}; in preTranslate()
142 void SkMatrix3D::preRotateX(SkScalar degX) { in preRotateX()
148 void SkMatrix3D::preRotateY(SkScalar degY) { in preRotateY()
154 void SkMatrix3D::preRotateZ(SkScalar degZ) { in preRotateZ()
181 SkScalar x = SkScalarDot(3, &fMat[0][0], 1, &src.fX, 1) + fMat[0][3]; in mapPoint()
182 SkScalar y = SkScalarDot(3, &fMat[1][0], 1, &src.fX, 1) + fMat[1][3]; in mapPoint()
183 SkScalar z = SkScalarDot(3, &fMat[2][0], 1, &src.fX, 1) + fMat[2][3]; in mapPoint()
188 SkScalar x = SkScalarDot(3, &fMat[0][0], 1, &src.fX, 1); in mapVector()
189 SkScalar y = SkScalarDot(3, &fMat[1][0], 1, &src.fX, 1); in mapVector()
190 SkScalar z = SkScalarDot(3, &fMat[2][0], 1, &src.fX, 1); in mapVector()
221 SkScalar dot = SkUnit3D::Dot(SkUnit3D{fZenith.fX, fZenith.fY, fZenith.fZ}, axis); in doUpdate()
234 SkScalar x = fObserver.fX; in doUpdate()
235 SkScalar y = fObserver.fY; in doUpdate()
236 SkScalar z = fObserver.fZ; in doUpdate()
270 const SkScalar* mapPtr = (const SkScalar*)(const void*)&fOrientation; in patchToMatrix()
271 const SkScalar* patchPtr; in patchToMatrix()
273 SkScalar dot; in patchToMatrix()
291 patchPtr = (const SkScalar*)&quilt; in patchToMatrix()
301 patchPtr = (const SkScalar*)(const void*)&diff; in patchToMatrix()
338 void Sk3DView::setCameraLocation(SkScalar x, SkScalar y, SkScalar z) { in setCameraLocation()
340 SkScalar lz = z * 72.0f; in setCameraLocation()
347 SkScalar Sk3DView::getCameraLocationX() const { in getCameraLocationX()
351 SkScalar Sk3DView::getCameraLocationY() const { in getCameraLocationY()
355 SkScalar Sk3DView::getCameraLocationZ() const { in getCameraLocationZ()
360 void Sk3DView::translate(SkScalar x, SkScalar y, SkScalar z) { in translate()
364 void Sk3DView::rotateX(SkScalar deg) { in rotateX()
368 void Sk3DView::rotateY(SkScalar deg) { in rotateY()
372 void Sk3DView::rotateZ(SkScalar deg) { in rotateZ()
376 SkScalar Sk3DView::dotWithNormal(SkScalar x, SkScalar y, SkScalar z) const { in dotWithNormal()