Home | History | Annotate | Download | only in utils

Lines Matching defs:axis

267     SkUnit3D    axis, zenith, cross;
269 fAxis.normalize(&axis);
272 SkScalar dot = SkUnit3D::Dot(*SkTCast<const SkUnit3D*>(&fZenith), axis);
274 zenith.fX = fZenith.fX - SkUnitScalarMul(dot, axis.fX);
275 zenith.fY = fZenith.fY - SkUnitScalarMul(dot, axis.fY);
276 zenith.fZ = fZenith.fZ - SkUnitScalarMul(dot, axis.fZ);
281 SkUnit3D::Cross(axis, zenith, &cross);
289 orien->set(SkMatrix::kMScaleX, SkUnitScalarMul(x, axis.fX) - SkUnitScalarMul(z, cross.fX));
290 orien->set(SkMatrix::kMSkewX, SkUnitScalarMul(x, axis.fY) - SkUnitScalarMul(z, cross.fY));
291 orien->set(SkMatrix::kMTransX, SkUnitScalarMul(x, axis.fZ) - SkUnitScalarMul(z, cross.fZ));
292 orien->set(SkMatrix::kMSkewY, SkUnitScalarMul(y, axis.fX) - SkUnitScalarMul(z, zenith.fX));
293 orien->set(SkMatrix::kMScaleY, SkUnitScalarMul(y, axis.fY) - SkUnitScalarMul(z, zenith.fY));
294 orien->set(SkMatrix::kMTransY, SkUnitScalarMul(y, axis.fZ) - SkUnitScalarMul(z, zenith.fZ));
295 orien->set(SkMatrix::kMPersp0, axis.fX);
296 orien->set(SkMatrix::kMPersp1, axis.fY);
297 orien->set(SkMatrix::kMPersp2, axis.fZ);