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 = SkScalarMul(fU.fY, fV.fZ) - SkScalarMul(fU.fZ, fV.fY); in dotWith()
87 SkScalar cy = SkScalarMul(fU.fZ, fV.fX) - SkScalarMul(fU.fX, fV.fY); in dotWith()
88 SkScalar cz = SkScalarMul(fU.fX, fV.fY) - SkScalarMul(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()
220 SkScalar dot = SkUnit3D::Dot(*SkTCast<const SkUnit3D*>(&fZenith), axis); in doUpdate()
233 SkScalar x = fObserver.fX; in doUpdate()
234 SkScalar y = fObserver.fY; in doUpdate()
235 SkScalar z = fObserver.fZ; in doUpdate()
255 const SkScalar* mapPtr = (const SkScalar*)(const void*)&fOrientation; in patchToMatrix()
256 const SkScalar* patchPtr; in patchToMatrix()
258 SkScalar dot; in patchToMatrix()
265 *SkTCast<const SkUnit3D*>(SkTCast<const SkScalar*>(&fOrientation) + 6)); in patchToMatrix()
267 patchPtr = (const SkScalar*)&quilt; in patchToMatrix()
277 patchPtr = (const SkScalar*)(const void*)&diff; in patchToMatrix()
314 void Sk3DView::setCameraLocation(SkScalar x, SkScalar y, SkScalar z) { in setCameraLocation()
316 SkScalar lz = z * 72.0f; in setCameraLocation()
323 SkScalar Sk3DView::getCameraLocationX() { in getCameraLocationX()
327 SkScalar Sk3DView::getCameraLocationY() { in getCameraLocationY()
331 SkScalar Sk3DView::getCameraLocationZ() { in getCameraLocationZ()
336 void Sk3DView::translate(SkScalar x, SkScalar y, SkScalar z) { in translate()
340 void Sk3DView::rotateX(SkScalar deg) { in rotateX()
344 void Sk3DView::rotateY(SkScalar deg) { in rotateY()
348 void Sk3DView::rotateZ(SkScalar deg) { in rotateZ()
352 SkScalar Sk3DView::dotWithNormal(SkScalar x, SkScalar y, SkScalar z) const { in dotWithNormal()