Lines Matching refs:axis
215 SkUnit3D axis, zenith, cross; in doUpdate() local
217 fAxis.normalize(&axis); in doUpdate()
220 SkScalar dot = SkUnit3D::Dot(*SkTCast<const SkUnit3D*>(&fZenith), axis); in doUpdate()
222 zenith.fX = fZenith.fX - dot * axis.fX; in doUpdate()
223 zenith.fY = fZenith.fY - dot * axis.fY; in doUpdate()
224 zenith.fZ = fZenith.fZ - dot * axis.fZ; in doUpdate()
229 SkUnit3D::Cross(axis, zenith, &cross); in doUpdate()
237 orien->set(SkMatrix::kMScaleX, x * axis.fX - z * cross.fX); in doUpdate()
238 orien->set(SkMatrix::kMSkewX, x * axis.fY - z * cross.fY); in doUpdate()
239 orien->set(SkMatrix::kMTransX, x * axis.fZ - z * cross.fZ); in doUpdate()
240 orien->set(SkMatrix::kMSkewY, y * axis.fX - z * zenith.fX); in doUpdate()
241 orien->set(SkMatrix::kMScaleY, y * axis.fY - z * zenith.fY); in doUpdate()
242 orien->set(SkMatrix::kMTransY, y * axis.fZ - z * zenith.fZ); in doUpdate()
243 orien->set(SkMatrix::kMPersp0, axis.fX); in doUpdate()
244 orien->set(SkMatrix::kMPersp1, axis.fY); in doUpdate()
245 orien->set(SkMatrix::kMPersp2, axis.fZ); in doUpdate()