Lines Matching refs:fMat
67 fMat[kMScaleX] = fMat[kMScaleY] = fMat[kMPersp2] = 1; in reset()
68 fMat[kMSkewX] = fMat[kMSkewY] = in reset()
69 fMat[kMTransX] = fMat[kMTransY] = in reset()
70 fMat[kMPersp0] = fMat[kMPersp1] = 0; in reset()
75 memcpy(fMat, buffer, 9 * sizeof(SkScalar)); in set9()
76 normalize_perspective(fMat); in set9()
81 fMat[kMScaleX] = buffer[kAScaleX]; in setAffine()
82 fMat[kMSkewX] = buffer[kASkewX]; in setAffine()
83 fMat[kMTransX] = buffer[kATransX]; in setAffine()
84 fMat[kMSkewY] = buffer[kASkewY]; in setAffine()
85 fMat[kMScaleY] = buffer[kAScaleY]; in setAffine()
86 fMat[kMTransY] = buffer[kATransY]; in setAffine()
87 fMat[kMPersp0] = 0; in setAffine()
88 fMat[kMPersp1] = 0; in setAffine()
89 fMat[kMPersp2] = 1; in setAffine()
108 if (fMat[kMPersp0] != 0 || fMat[kMPersp1] != 0 || fMat[kMPersp2] != 1) { in computePerspectiveTypeMask()
122 if (fMat[kMPersp0] != 0 || fMat[kMPersp1] != 0 || fMat[kMPersp2] != 1) { in computeTypeMask()
128 if (fMat[kMTransX] != 0 || fMat[kMTransY] != 0) { in computeTypeMask()
132 int m00 = SkScalarAs2sCompliment(fMat[SkMatrix::kMScaleX]); in computeTypeMask()
133 int m01 = SkScalarAs2sCompliment(fMat[SkMatrix::kMSkewX]); in computeTypeMask()
134 int m10 = SkScalarAs2sCompliment(fMat[SkMatrix::kMSkewY]); in computeTypeMask()
135 int m11 = SkScalarAs2sCompliment(fMat[SkMatrix::kMScaleY]); in computeTypeMask()
183 const SkScalar* SK_RESTRICT ma = a.fMat; in operator ==()
184 const SkScalar* SK_RESTRICT mb = b.fMat; in operator ==()
212 SkScalar mx = fMat[kMScaleX]; in isSimilarity()
213 SkScalar my = fMat[kMScaleY]; in isSimilarity()
218 SkScalar sx = fMat[kMSkewX]; in isSimilarity()
219 SkScalar sy = fMat[kMSkewY]; in isSimilarity()
244 SkScalar mx = fMat[kMScaleX]; in preservesRightAngles()
245 SkScalar my = fMat[kMScaleY]; in preservesRightAngles()
246 SkScalar sx = fMat[kMSkewX]; in preservesRightAngles()
247 SkScalar sy = fMat[kMSkewY]; in preservesRightAngles()
278 fMat[kMTransX] = dx; in setTranslate()
279 fMat[kMTransY] = dy; in setTranslate()
281 fMat[kMScaleX] = fMat[kMScaleY] = fMat[kMPersp2] = 1; in setTranslate()
282 fMat[kMSkewX] = fMat[kMSkewY] = in setTranslate()
283 fMat[kMPersp0] = fMat[kMPersp1] = 0; in setTranslate()
295 fMat[kMTransX] += dx; in preTranslate()
296 fMat[kMTransY] += dy; in preTranslate()
303 fMat[kMTransX] += sdot(fMat[kMScaleX], dx, fMat[kMSkewX], dy); in preTranslate()
304 fMat[kMTransY] += sdot(fMat[kMSkewY], dx, fMat[kMScaleY], dy); in preTranslate()
315 fMat[kMTransX] += dx; in postTranslate()
316 fMat[kMTransY] += dy; in postTranslate()
335 fMat[kMScaleX] = sx; in setScale()
336 fMat[kMScaleY] = sy; in setScale()
337 fMat[kMPersp2] = 1; in setScale()
339 fMat[kMTransX] = fMat[kMTransY] = in setScale()
340 fMat[kMSkewX] = fMat[kMSkewY] = in setScale()
341 fMat[kMPersp0] = fMat[kMPersp1] = 0; in setScale()
367 fMat[kMScaleX] *= sx; in preScale()
368 fMat[kMSkewY] *= sx; in preScale()
369 fMat[kMPersp0] *= sx; in preScale()
371 fMat[kMSkewX] *= sy; in preScale()
372 fMat[kMScaleY] *= sy; in preScale()
373 fMat[kMPersp1] *= sy; in preScale()
379 if (fMat[kMScaleX] == 1 && fMat[kMScaleY] == 1 in preScale()
415 fMat[kMScaleX] *= invX; in postIDiv()
416 fMat[kMSkewX] *= invX; in postIDiv()
417 fMat[kMTransX] *= invX; in postIDiv()
419 fMat[kMScaleY] *= invY; in postIDiv()
420 fMat[kMSkewY] *= invY; in postIDiv()
421 fMat[kMTransY] *= invY; in postIDiv()
432 fMat[kMScaleX] = cosV; in setSinCos()
433 fMat[kMSkewX] = -sinV; in setSinCos()
434 fMat[kMTransX] = sdot(sinV, py, oneMinusCosV, px); in setSinCos()
436 fMat[kMSkewY] = sinV; in setSinCos()
437 fMat[kMScaleY] = cosV; in setSinCos()
438 fMat[kMTransY] = sdot(-sinV, px, oneMinusCosV, py); in setSinCos()
440 fMat[kMPersp0] = fMat[kMPersp1] = 0; in setSinCos()
441 fMat[kMPersp2] = 1; in setSinCos()
447 fMat[kMScaleX] = xform.fSCos; in setRSXform()
448 fMat[kMSkewX] = -xform.fSSin; in setRSXform()
449 fMat[kMTransX] = xform.fTx; in setRSXform()
451 fMat[kMSkewY] = xform.fSSin; in setRSXform()
452 fMat[kMScaleY] = xform.fSCos; in setRSXform()
453 fMat[kMTransY] = xform.fTy; in setRSXform()
455 fMat[kMPersp0] = fMat[kMPersp1] = 0; in setRSXform()
456 fMat[kMPersp2] = 1; in setRSXform()
463 fMat[kMScaleX] = cosV; in setSinCos()
464 fMat[kMSkewX] = -sinV; in setSinCos()
465 fMat[kMTransX] = 0; in setSinCos()
467 fMat[kMSkewY] = sinV; in setSinCos()
468 fMat[kMScaleY] = cosV; in setSinCos()
469 fMat[kMTransY] = 0; in setSinCos()
471 fMat[kMPersp0] = fMat[kMPersp1] = 0; in setSinCos()
472 fMat[kMPersp2] = 1; in setSinCos()
516 fMat[kMScaleX] = 1; in setSkew()
517 fMat[kMSkewX] = sx; in setSkew()
518 fMat[kMTransX] = -sx * py; in setSkew()
520 fMat[kMSkewY] = sy; in setSkew()
521 fMat[kMScaleY] = 1; in setSkew()
522 fMat[kMTransY] = -sy * px; in setSkew()
524 fMat[kMPersp0] = fMat[kMPersp1] = 0; in setSkew()
525 fMat[kMPersp2] = 1; in setSkew()
531 fMat[kMScaleX] = 1; in setSkew()
532 fMat[kMSkewX] = sx; in setSkew()
533 fMat[kMTransX] = 0; in setSkew()
535 fMat[kMSkewY] = sy; in setSkew()
536 fMat[kMScaleY] = 1; in setSkew()
537 fMat[kMTransY] = 0; in setSkew()
539 fMat[kMPersp0] = fMat[kMPersp1] = 0; in setSkew()
540 fMat[kMPersp2] = 1; in setSkew()
578 sk_bzero(fMat, 8 * sizeof(SkScalar)); in setRectToRect()
579 fMat[kMPersp2] = 1; in setRectToRect()
645 this->setScaleTranslate(a.fMat[kMScaleX] * b.fMat[kMScaleX], in setConcat()
646 a.fMat[kMScaleY] * b.fMat[kMScaleY], in setConcat()
647 a.fMat[kMScaleX] * b.fMat[kMTransX] + a.fMat[kMTransX], in setConcat()
648 a.fMat[kMScaleY] * b.fMat[kMTransY] + a.fMat[kMTransY]); in setConcat()
653 tmp.fMat[kMScaleX] = rowcol3(&a.fMat[0], &b.fMat[0]); in setConcat()
654 tmp.fMat[kMSkewX] = rowcol3(&a.fMat[0], &b.fMat[1]); in setConcat()
655 tmp.fMat[kMTransX] = rowcol3(&a.fMat[0], &b.fMat[2]); in setConcat()
656 tmp.fMat[kMSkewY] = rowcol3(&a.fMat[3], &b.fMat[0]); in setConcat()
657 tmp.fMat[kMScaleY] = rowcol3(&a.fMat[3], &b.fMat[1]); in setConcat()
658 tmp.fMat[kMTransY] = rowcol3(&a.fMat[3], &b.fMat[2]); in setConcat()
659 tmp.fMat[kMPersp0] = rowcol3(&a.fMat[6], &b.fMat[0]); in setConcat()
660 tmp.fMat[kMPersp1] = rowcol3(&a.fMat[6], &b.fMat[1]); in setConcat()
661 tmp.fMat[kMPersp2] = rowcol3(&a.fMat[6], &b.fMat[2]); in setConcat()
663 normalize_perspective(tmp.fMat); in setConcat()
666 tmp.fMat[kMScaleX] = muladdmul(a.fMat[kMScaleX], in setConcat()
667 b.fMat[kMScaleX], in setConcat()
668 a.fMat[kMSkewX], in setConcat()
669 b.fMat[kMSkewY]); in setConcat()
671 tmp.fMat[kMSkewX] = muladdmul(a.fMat[kMScaleX], in setConcat()
672 b.fMat[kMSkewX], in setConcat()
673 a.fMat[kMSkewX], in setConcat()
674 b.fMat[kMScaleY]); in setConcat()
676 tmp.fMat[kMTransX] = muladdmul(a.fMat[kMScaleX], in setConcat()
677 b.fMat[kMTransX], in setConcat()
678 a.fMat[kMSkewX], in setConcat()
679 b.fMat[kMTransY]) + a.fMat[kMTransX]; in setConcat()
681 tmp.fMat[kMSkewY] = muladdmul(a.fMat[kMSkewY], in setConcat()
682 b.fMat[kMScaleX], in setConcat()
683 a.fMat[kMScaleY], in setConcat()
684 b.fMat[kMSkewY]); in setConcat()
686 tmp.fMat[kMScaleY] = muladdmul(a.fMat[kMSkewY], in setConcat()
687 b.fMat[kMSkewX], in setConcat()
688 a.fMat[kMScaleY], in setConcat()
689 b.fMat[kMScaleY]); in setConcat()
691 tmp.fMat[kMTransY] = muladdmul(a.fMat[kMSkewY], in setConcat()
692 b.fMat[kMTransX], in setConcat()
693 a.fMat[kMScaleY], in setConcat()
694 b.fMat[kMTransY]) + a.fMat[kMTransY]; in setConcat()
696 tmp.fMat[kMPersp0] = 0; in setConcat()
697 tmp.fMat[kMPersp1] = 0; in setConcat()
698 tmp.fMat[kMPersp2] = 1; in setConcat()
789 affine[kAScaleX] = this->fMat[kMScaleX]; in asAffine()
790 affine[kASkewY] = this->fMat[kMSkewY]; in asAffine()
791 affine[kASkewX] = this->fMat[kMSkewX]; in asAffine()
792 affine[kAScaleY] = this->fMat[kMScaleY]; in asAffine()
793 affine[kATransX] = this->fMat[kMTransX]; in asAffine()
794 affine[kATransY] = this->fMat[kMTransY]; in asAffine()
839 SkScalar invX = fMat[kMScaleX]; in invertNonIdentity()
840 SkScalar invY = fMat[kMScaleY]; in invertNonIdentity()
850 inv->fMat[kMSkewX] = inv->fMat[kMSkewY] = in invertNonIdentity()
851 inv->fMat[kMPersp0] = inv->fMat[kMPersp1] = 0; in invertNonIdentity()
853 inv->fMat[kMScaleX] = invX; in invertNonIdentity()
854 inv->fMat[kMScaleY] = invY; in invertNonIdentity()
855 inv->fMat[kMPersp2] = 1; in invertNonIdentity()
856 inv->fMat[kMTransX] = -fMat[kMTransX] * invX; in invertNonIdentity()
857 inv->fMat[kMTransY] = -fMat[kMTransY] * invY; in invertNonIdentity()
862 inv->setTranslate(-fMat[kMTransX], -fMat[kMTransY]); in invertNonIdentity()
865 if (!fMat[kMScaleX] || !fMat[kMScaleY]) { in invertNonIdentity()
873 double invDet = sk_inv_determinant(fMat, isPersp); in invertNonIdentity()
888 ComputeInv(tmp->fMat, fMat, invDet, isPersp); in invertNonIdentity()
981 SkScalar x = sdot(sx, m.fMat[kMScaleX], sy, m.fMat[kMSkewX]) + m.fMat[kMTransX]; in Persp_pts()
982 SkScalar y = sdot(sx, m.fMat[kMSkewY], sy, m.fMat[kMScaleY]) + m.fMat[kMTransY]; in Persp_pts()
984 SkScalar z = sx * m.fMat[kMPersp0] + (sy * m.fMat[kMPersp1] + m.fMat[kMPersp2]); in Persp_pts()
986 SkScalar z = sdot(sx, m.fMat[kMPersp0], sy, m.fMat[kMPersp1]) + m.fMat[kMPersp2]; in Persp_pts()
1070 const SkScalar* mat = mx.fMat; in MapHomogeneousPointsWithStride()
1105 tmp.fMat[kMTransX] = tmp.fMat[kMTransY] = 0; in mapVectors()
1124 SkScalar sx = fMat[kMScaleX]; in mapRectScaleTranslate()
1125 SkScalar sy = fMat[kMScaleY]; in mapRectScaleTranslate()
1126 SkScalar tx = fMat[kMTransX]; in mapRectScaleTranslate()
1127 SkScalar ty = fMat[kMTransY]; in mapRectScaleTranslate()
1137 SkScalar tx = fMat[kMTransX]; in mapRect()
1138 SkScalar ty = fMat[kMTransY]; in mapRect()
1176 SkScalar x = sdot(sx, m.fMat[kMScaleX], sy, m.fMat[kMSkewX]) + m.fMat[kMTransX]; in Persp_xy()
1177 SkScalar y = sdot(sx, m.fMat[kMSkewY], sy, m.fMat[kMScaleY]) + m.fMat[kMTransY]; in Persp_xy()
1178 SkScalar z = sdot(sx, m.fMat[kMPersp0], sy, m.fMat[kMPersp1]) + m.fMat[kMPersp2]; in Persp_xy()
1191 pt->fX = sx * m.fMat[kMScaleX] + (sy * m.fMat[kMSkewX] + m.fMat[kMTransX]); in RotTrans_xy()
1192 pt->fY = sx * m.fMat[kMSkewY] + (sy * m.fMat[kMScaleY] + m.fMat[kMTransY]); in RotTrans_xy()
1194 pt->fX = sdot(sx, m.fMat[kMScaleX], sy, m.fMat[kMSkewX]) + m.fMat[kMTransX]; in RotTrans_xy()
1195 pt->fY = sdot(sx, m.fMat[kMSkewY], sy, m.fMat[kMScaleY]) + m.fMat[kMTransY]; in RotTrans_xy()
1202 SkASSERT(0 == m.fMat[kMTransX]); in Rot_xy()
1203 SkASSERT(0 == m.fMat[kMTransY]); in Rot_xy()
1206 pt->fX = sx * m.fMat[kMScaleX] + (sy * m.fMat[kMSkewX] + m.fMat[kMTransX]); in Rot_xy()
1207 pt->fY = sx * m.fMat[kMSkewY] + (sy * m.fMat[kMScaleY] + m.fMat[kMTransY]); in Rot_xy()
1209 pt->fX = sdot(sx, m.fMat[kMScaleX], sy, m.fMat[kMSkewX]) + m.fMat[kMTransX]; in Rot_xy()
1210 pt->fY = sdot(sx, m.fMat[kMSkewY], sy, m.fMat[kMScaleY]) + m.fMat[kMTransY]; in Rot_xy()
1219 pt->fX = sx * m.fMat[kMScaleX] + m.fMat[kMTransX]; in ScaleTrans_xy()
1220 pt->fY = sy * m.fMat[kMScaleY] + m.fMat[kMTransY]; in ScaleTrans_xy()
1227 SkASSERT(0 == m.fMat[kMTransX]); in Scale_xy()
1228 SkASSERT(0 == m.fMat[kMTransY]); in Scale_xy()
1230 pt->fX = sx * m.fMat[kMScaleX]; in Scale_xy()
1231 pt->fY = sy * m.fMat[kMScaleY]; in Scale_xy()
1238 pt->fX = sx + m.fMat[kMTransX]; in Trans_xy()
1239 pt->fY = sy + m.fMat[kMTransY]; in Trans_xy()
1268 return PerspNearlyZero(fMat[kMPersp0]); in isFixedStepInX()
1272 SkASSERT(PerspNearlyZero(fMat[kMPersp0])); in fixedStepInX()
1273 if (PerspNearlyZero(fMat[kMPersp1]) && in fixedStepInX()
1274 PerspNearlyZero(fMat[kMPersp2] - 1)) { in fixedStepInX()
1275 return SkVector::Make(fMat[kMScaleX], fMat[kMSkewY]); in fixedStepInX()
1277 SkScalar z = y * fMat[kMPersp1] + fMat[kMPersp2]; in fixedStepInX()
1278 return SkVector::Make(fMat[kMScaleX] / z, fMat[kMSkewY] / z); in fixedStepInX()
1289 dst->fMat[kMScaleX] = srcPt[1].fY - srcPt[0].fY; in Poly2Proc()
1290 dst->fMat[kMSkewY] = srcPt[0].fX - srcPt[1].fX; in Poly2Proc()
1291 dst->fMat[kMPersp0] = 0; in Poly2Proc()
1293 dst->fMat[kMSkewX] = srcPt[1].fX - srcPt[0].fX; in Poly2Proc()
1294 dst->fMat[kMScaleY] = srcPt[1].fY - srcPt[0].fY; in Poly2Proc()
1295 dst->fMat[kMPersp1] = 0; in Poly2Proc()
1297 dst->fMat[kMTransX] = srcPt[0].fX; in Poly2Proc()
1298 dst->fMat[kMTransY] = srcPt[0].fY; in Poly2Proc()
1299 dst->fMat[kMPersp2] = 1; in Poly2Proc()
1305 dst->fMat[kMScaleX] = srcPt[2].fX - srcPt[0].fX; in Poly3Proc()
1306 dst->fMat[kMSkewY] = srcPt[2].fY - srcPt[0].fY; in Poly3Proc()
1307 dst->fMat[kMPersp0] = 0; in Poly3Proc()
1309 dst->fMat[kMSkewX] = srcPt[1].fX - srcPt[0].fX; in Poly3Proc()
1310 dst->fMat[kMScaleY] = srcPt[1].fY - srcPt[0].fY; in Poly3Proc()
1311 dst->fMat[kMPersp1] = 0; in Poly3Proc()
1313 dst->fMat[kMTransX] = srcPt[0].fX; in Poly3Proc()
1314 dst->fMat[kMTransY] = srcPt[0].fY; in Poly3Proc()
1315 dst->fMat[kMPersp2] = 1; in Poly3Proc()
1361 dst->fMat[kMScaleX] = a2 * srcPt[3].fX + srcPt[3].fX - srcPt[0].fX; in Poly4Proc()
1362 dst->fMat[kMSkewY] = a2 * srcPt[3].fY + srcPt[3].fY - srcPt[0].fY; in Poly4Proc()
1363 dst->fMat[kMPersp0] = a2; in Poly4Proc()
1365 dst->fMat[kMSkewX] = a1 * srcPt[1].fX + srcPt[1].fX - srcPt[0].fX; in Poly4Proc()
1366 dst->fMat[kMScaleY] = a1 * srcPt[1].fY + srcPt[1].fY - srcPt[0].fY; in Poly4Proc()
1367 dst->fMat[kMPersp1] = a1; in Poly4Proc()
1369 dst->fMat[kMTransX] = srcPt[0].fX; in Poly4Proc()
1370 dst->fMat[kMTransY] = srcPt[0].fY; in Poly4Proc()
1371 dst->fMat[kMPersp2] = 1; in Poly4Proc()
1521 if (get_scale_factor<kMin_MinMaxOrBoth>(this->getType(), fMat, &factor)) { in getMinScale()
1530 if (get_scale_factor<kMax_MinMaxOrBoth>(this->getType(), fMat, &factor)) { in getMaxScale()
1538 return get_scale_factor<kBoth_MinMaxOrBoth>(this->getType(), fMat, scaleFactors); in getMinMaxScales()
1555 static_assert(offsetof(SkMatrix,fMat) == offsetof(AggregateMatrix,matrix), "fMat"); in I()
1567 static_assert(offsetof(SkMatrix,fMat) == offsetof(AggregateMatrix,matrix), "fMat"); in InvalidMatrix()
1607 memcpy(buffer, fMat, sizeInMemory); in writeToMemory()
1617 memcpy(fMat, buffer, sizeInMemory); in readFromMemory()
1625 fMat[0], fMat[1], fMat[2], fMat[3], fMat[4], fMat[5], in dump()
1626 fMat[6], fMat[7], fMat[8]); in dump()