Home | History | Annotate | Download | only in utils

Lines Matching defs:Dot

48 SkScalar SkUnit3D::Dot(const SkUnit3D& a, const SkUnit3D& b) {
221 SkScalar dot = SkUnit3D::Dot(*SkTCast<const SkUnit3D*>(&fZenith), axis);
223 zenith.fX = fZenith.fX - dot * axis.fX;
224 zenith.fY = fZenith.fY - dot * axis.fY;
225 zenith.fZ = fZenith.fZ - dot * axis.fZ;
273 SkScalar dot;
279 dot = SkUnit3D::Dot(*SkTCast<const SkUnit3D*>(&diff),
284 // the view axis (which is 'dot'). This transforms the patch (which transforms from local path
288 // The divide by 'dot' isn't strictly necessary as the homogeneous divide would do much the
289 // same thing (it's just scaling the entire matrix by 1/dot). It looks like it's normalizing
292 matrix->set(SkMatrix::kMScaleX, SkScalarDotDiv(3, patchPtr, 1, mapPtr, 1, dot));
293 matrix->set(SkMatrix::kMSkewY, SkScalarDotDiv(3, patchPtr, 1, mapPtr+3, 1, dot));
294 matrix->set(SkMatrix::kMPersp0, SkScalarDotDiv(3, patchPtr, 1, mapPtr+6, 1, dot));
297 matrix->set(SkMatrix::kMSkewX, SkScalarDotDiv(3, patchPtr, 1, mapPtr, 1, dot));
298 matrix->set(SkMatrix::kMScaleY, SkScalarDotDiv(3, patchPtr, 1, mapPtr+3, 1, dot));
299 matrix->set(SkMatrix::kMPersp1, SkScalarDotDiv(3, patchPtr, 1, mapPtr+6, 1, dot));
302 matrix->set(SkMatrix::kMTransX, SkScalarDotDiv(3, patchPtr, 1, mapPtr, 1, dot));
303 matrix->set(SkMatrix::kMTransY, SkScalarDotDiv(3, patchPtr, 1, mapPtr+3, 1, dot));