Lines Matching refs:fMat
25 const SkMScalar* SK_RESTRICT a = &fMat[0][0]; in operator ==()
26 const SkMScalar* SK_RESTRICT b = &other.fMat[0][0]; in operator ==()
56 if (0 != perspX() || 0 != perspY() || 0 != perspZ() || 1 != fMat[3][3]) { in computeTypeMask()
68 if (0 != fMat[1][0] || 0 != fMat[0][1] || 0 != fMat[0][2] || in computeTypeMask()
69 0 != fMat[2][0] || 0 != fMat[1][2] || 0 != fMat[2][1]) { in computeTypeMask()
79 const SkMScalar* src = &fMat[0][0]; in asColMajorf()
90 dst[0] = fMat[0][0]; dst[1] = fMat[1][0]; dst[2] = fMat[2][0]; dst[3] = fMat[3][0]; in as3x4RowMajorf()
91 dst[4] = fMat[0][1]; dst[5] = fMat[1][1]; dst[6] = fMat[2][1]; dst[7] = fMat[3][1]; in as3x4RowMajorf()
92 dst[8] = fMat[0][2]; dst[9] = fMat[1][2]; dst[10] = fMat[2][2]; dst[11] = fMat[3][2]; in as3x4RowMajorf()
96 const SkMScalar* src = &fMat[0][0]; in asColMajord()
107 const SkMScalar* src = &fMat[0][0]; in asRowMajorf()
119 const SkMScalar* src = &fMat[0][0]; in asRowMajord()
131 SkMScalar* dst = &fMat[0][0]; in setColMajorf()
144 SkMScalar* dst = &fMat[0][0]; in setColMajord()
157 SkMScalar* dst = &fMat[0][0]; in setRowMajorf()
170 SkMScalar* dst = &fMat[0][0]; in setRowMajord()
190 fMat[0][0] = 1; in setIdentity()
191 fMat[0][1] = 0; in setIdentity()
192 fMat[0][2] = 0; in setIdentity()
193 fMat[0][3] = 0; in setIdentity()
194 fMat[1][0] = 0; in setIdentity()
195 fMat[1][1] = 1; in setIdentity()
196 fMat[1][2] = 0; in setIdentity()
197 fMat[1][3] = 0; in setIdentity()
198 fMat[2][0] = 0; in setIdentity()
199 fMat[2][1] = 0; in setIdentity()
200 fMat[2][2] = 1; in setIdentity()
201 fMat[2][3] = 0; in setIdentity()
202 fMat[3][0] = 0; in setIdentity()
203 fMat[3][1] = 0; in setIdentity()
204 fMat[3][2] = 0; in setIdentity()
205 fMat[3][3] = 1; in setIdentity()
212 fMat[0][0] = m_00; fMat[0][1] = m_10; fMat[0][2] = m_20; fMat[0][3] = 0; in set3x3()
213 fMat[1][0] = m_01; fMat[1][1] = m_11; fMat[1][2] = m_21; fMat[1][3] = 0; in set3x3()
214 fMat[2][0] = m_02; fMat[2][1] = m_12; fMat[2][2] = m_22; fMat[2][3] = 0; in set3x3()
215 fMat[3][0] = 0; fMat[3][1] = 0; fMat[3][2] = 0; fMat[3][3] = 1; in set3x3()
220 fMat[0][0] = src[0]; fMat[0][1] = src[3]; fMat[0][2] = src[6]; fMat[0][3] = 0; in set3x3RowMajorf()
221 fMat[1][0] = src[1]; fMat[1][1] = src[4]; fMat[1][2] = src[7]; fMat[1][3] = 0; in set3x3RowMajorf()
222 fMat[2][0] = src[2]; fMat[2][1] = src[5]; fMat[2][2] = src[8]; fMat[2][3] = 0; in set3x3RowMajorf()
223 fMat[3][0] = 0; fMat[3][1] = 0; fMat[3][2] = 0; fMat[3][3] = 1; in set3x3RowMajorf()
228 fMat[0][0] = src[0]; fMat[1][0] = src[1]; fMat[2][0] = src[2]; fMat[3][0] = src[3]; in set3x4RowMajorf()
229 fMat[0][1] = src[4]; fMat[1][1] = src[5]; fMat[2][1] = src[6]; fMat[3][1] = src[7]; in set3x4RowMajorf()
230 fMat[0][2] = src[8]; fMat[1][2] = src[9]; fMat[2][2] = src[10]; fMat[3][2] = src[11]; in set3x4RowMajorf()
231 fMat[0][3] = 0; fMat[1][3] = 0; fMat[2][3] = 0; fMat[3][3] = 1; in set3x4RowMajorf()
244 fMat[3][0] = dx; in setTranslate()
245 fMat[3][1] = dy; in setTranslate()
246 fMat[3][2] = dz; in setTranslate()
256 fMat[3][i] = fMat[0][i] * dx + fMat[1][i] * dy + fMat[2][i] * dz + fMat[3][i]; in preTranslate()
268 fMat[i][0] += fMat[i][3] * dx; in postTranslate()
269 fMat[i][1] += fMat[i][3] * dy; in postTranslate()
270 fMat[i][2] += fMat[i][3] * dz; in postTranslate()
273 fMat[3][0] += dx; in postTranslate()
274 fMat[3][1] += dy; in postTranslate()
275 fMat[3][2] += dz; in postTranslate()
289 fMat[0][0] = sx; in setScale()
290 fMat[1][1] = sy; in setScale()
291 fMat[2][2] = sz; in setScale()
304 fMat[0][i] *= sx; in preScale()
305 fMat[1][i] *= sy; in preScale()
306 fMat[2][i] *= sz; in preScale()
317 fMat[i][0] *= sx; in postScale()
318 fMat[i][1] *= sy; in postScale()
319 fMat[i][2] *= sz; in postScale()
392 SkMScalar* result = useStorage ? storage : &fMat[0][0]; in setConcat()
396 result[0] = a.fMat[0][0] * b.fMat[0][0]; in setConcat()
398 result[5] = a.fMat[1][1] * b.fMat[1][1]; in setConcat()
400 result[10] = a.fMat[2][2] * b.fMat[2][2]; in setConcat()
402 result[12] = a.fMat[0][0] * b.fMat[3][0] + a.fMat[3][0]; in setConcat()
403 result[13] = a.fMat[1][1] * b.fMat[3][1] + a.fMat[3][1]; in setConcat()
404 result[14] = a.fMat[2][2] * b.fMat[3][2] + a.fMat[3][2]; in setConcat()
411 value += SkMScalarToDouble(a.fMat[k][i]) * b.fMat[j][k]; in setConcat()
419 memcpy(fMat, storage, sizeof(storage)); in setConcat()
435 return fMat[0][0] * fMat[1][1] * fMat[2][2] * fMat[3][3]; in determinant()
438 double a00 = fMat[0][0]; in determinant()
439 double a01 = fMat[0][1]; in determinant()
440 double a02 = fMat[0][2]; in determinant()
441 double a03 = fMat[0][3]; in determinant()
442 double a10 = fMat[1][0]; in determinant()
443 double a11 = fMat[1][1]; in determinant()
444 double a12 = fMat[1][2]; in determinant()
445 double a13 = fMat[1][3]; in determinant()
446 double a20 = fMat[2][0]; in determinant()
447 double a21 = fMat[2][1]; in determinant()
448 double a22 = fMat[2][2]; in determinant()
449 double a23 = fMat[2][3]; in determinant()
450 double a30 = fMat[3][0]; in determinant()
451 double a31 = fMat[3][1]; in determinant()
452 double a32 = fMat[3][2]; in determinant()
453 double a33 = fMat[3][3]; in determinant()
494 storage->setTranslate(-fMat[3][0], -fMat[3][1], -fMat[3][2]); in invert()
503 if (0 == fMat[0][0] * fMat[1][1] * fMat[2][2]) { in invert()
507 double invXScale = 1 / fMat[0][0]; in invert()
508 double invYScale = 1 / fMat[1][1]; in invert()
509 double invZScale = 1 / fMat[2][2]; in invert()
511 inverse->fMat[0][0] = SkDoubleToMScalar(invXScale); in invert()
512 inverse->fMat[0][1] = 0; in invert()
513 inverse->fMat[0][2] = 0; in invert()
514 inverse->fMat[0][3] = 0; in invert()
516 inverse->fMat[1][0] = 0; in invert()
517 inverse->fMat[1][1] = SkDoubleToMScalar(invYScale); in invert()
518 inverse->fMat[1][2] = 0; in invert()
519 inverse->fMat[1][3] = 0; in invert()
521 inverse->fMat[2][0] = 0; in invert()
522 inverse->fMat[2][1] = 0; in invert()
523 inverse->fMat[2][2] = SkDoubleToMScalar(invZScale); in invert()
524 inverse->fMat[2][3] = 0; in invert()
526 inverse->fMat[3][0] = SkDoubleToMScalar(-fMat[3][0] * invXScale); in invert()
527 inverse->fMat[3][1] = SkDoubleToMScalar(-fMat[3][1] * invYScale); in invert()
528 inverse->fMat[3][2] = SkDoubleToMScalar(-fMat[3][2] * invZScale); in invert()
529 inverse->fMat[3][3] = 1; in invert()
542 double a00 = fMat[0][0]; in invert()
543 double a01 = fMat[0][1]; in invert()
544 double a02 = fMat[0][2]; in invert()
545 double a03 = fMat[0][3]; in invert()
546 double a10 = fMat[1][0]; in invert()
547 double a11 = fMat[1][1]; in invert()
548 double a12 = fMat[1][2]; in invert()
549 double a13 = fMat[1][3]; in invert()
550 double a20 = fMat[2][0]; in invert()
551 double a21 = fMat[2][1]; in invert()
552 double a22 = fMat[2][2]; in invert()
553 double a23 = fMat[2][3]; in invert()
554 double a30 = fMat[3][0]; in invert()
555 double a31 = fMat[3][1]; in invert()
556 double a32 = fMat[3][2]; in invert()
557 double a33 = fMat[3][3]; in invert()
601 inverse->fMat[0][0] = SkDoubleToMScalar(a11 * b11 - a12 * b10); in invert()
602 inverse->fMat[0][1] = SkDoubleToMScalar(a02 * b10 - a01 * b11); in invert()
603 inverse->fMat[0][2] = SkDoubleToMScalar(b03); in invert()
604 inverse->fMat[0][3] = 0; in invert()
605 inverse->fMat[1][0] = SkDoubleToMScalar(a12 * b08 - a10 * b11); in invert()
606 inverse->fMat[1][1] = SkDoubleToMScalar(a00 * b11 - a02 * b08); in invert()
607 inverse->fMat[1][2] = SkDoubleToMScalar(-b01); in invert()
608 inverse->fMat[1][3] = 0; in invert()
609 inverse->fMat[2][0] = SkDoubleToMScalar(a10 * b10 - a11 * b08); in invert()
610 inverse->fMat[2][1] = SkDoubleToMScalar(a01 * b08 - a00 * b10); in invert()
611 inverse->fMat[2][2] = SkDoubleToMScalar(b00); in invert()
612 inverse->fMat[2][3] = 0; in invert()
613 inverse->fMat[3][0] = SkDoubleToMScalar(a11 * b07 - a10 * b09 - a12 * b06); in invert()
614 inverse->fMat[3][1] = SkDoubleToMScalar(a00 * b09 - a01 * b07 + a02 * b06); in invert()
615 inverse->fMat[3][2] = SkDoubleToMScalar(a31 * b01 - a30 * b03 - a32 * b00); in invert()
616 inverse->fMat[3][3] = 1; in invert()
665 inverse->fMat[0][0] = SkDoubleToMScalar(a11 * b11 - a12 * b10 + a13 * b09); in invert()
666 inverse->fMat[0][1] = SkDoubleToMScalar(a02 * b10 - a01 * b11 - a03 * b09); in invert()
667 inverse->fMat[0][2] = SkDoubleToMScalar(a31 * b05 - a32 * b04 + a33 * b03); in invert()
668 inverse->fMat[0][3] = SkDoubleToMScalar(a22 * b04 - a21 * b05 - a23 * b03); in invert()
669 inverse->fMat[1][0] = SkDoubleToMScalar(a12 * b08 - a10 * b11 - a13 * b07); in invert()
670 inverse->fMat[1][1] = SkDoubleToMScalar(a00 * b11 - a02 * b08 + a03 * b07); in invert()
671 inverse->fMat[1][2] = SkDoubleToMScalar(a32 * b02 - a30 * b05 - a33 * b01); in invert()
672 inverse->fMat[1][3] = SkDoubleToMScalar(a20 * b05 - a22 * b02 + a23 * b01); in invert()
673 inverse->fMat[2][0] = SkDoubleToMScalar(a10 * b10 - a11 * b08 + a13 * b06); in invert()
674 inverse->fMat[2][1] = SkDoubleToMScalar(a01 * b08 - a00 * b10 - a03 * b06); in invert()
675 inverse->fMat[2][2] = SkDoubleToMScalar(a30 * b04 - a31 * b02 + a33 * b00); in invert()
676 inverse->fMat[2][3] = SkDoubleToMScalar(a21 * b02 - a20 * b04 - a23 * b00); in invert()
677 inverse->fMat[3][0] = SkDoubleToMScalar(a11 * b07 - a10 * b09 - a12 * b06); in invert()
678 inverse->fMat[3][1] = SkDoubleToMScalar(a00 * b09 - a01 * b07 + a02 * b06); in invert()
679 inverse->fMat[3][2] = SkDoubleToMScalar(a31 * b01 - a30 * b03 - a32 * b00); in invert()
680 inverse->fMat[3][3] = SkDoubleToMScalar(a20 * b03 - a21 * b01 + a22 * b00); in invert()
697 swap(fMat[0][1], fMat[1][0]); in transpose()
698 swap(fMat[0][2], fMat[2][0]); in transpose()
699 swap(fMat[0][3], fMat[3][0]); in transpose()
700 swap(fMat[1][2], fMat[2][1]); in transpose()
701 swap(fMat[1][3], fMat[3][1]); in transpose()
702 swap(fMat[2][3], fMat[3][2]); in transpose()
718 value += fMat[j][i] * src[j]; in mapScalars()
737 value += fMat[j][i] * src[j]; in mapMScalars()
895 proc(fMat, src2, count, dst4); in map2()
905 proc(fMat, src2, count, dst4); in map2()
925 if (SkMScalarAbs(fMat[0][0]) > epsilon) { in preserves2dAxisAlignment()
929 if (SkMScalarAbs(fMat[0][1]) > epsilon) { in preserves2dAxisAlignment()
933 if (SkMScalarAbs(fMat[1][0]) > epsilon) { in preserves2dAxisAlignment()
937 if (SkMScalarAbs(fMat[1][1]) > epsilon) { in preserves2dAxisAlignment()
956 fMat[0][0], fMat[1][0], fMat[2][0], fMat[3][0], in dump()
957 fMat[0][1], fMat[1][1], fMat[2][1], fMat[3][1], in dump()
958 fMat[0][2], fMat[1][2], fMat[2][2], fMat[3][2], in dump()
959 fMat[0][3], fMat[1][3], fMat[2][3], fMat[3][3]); in dump()
988 initFromMatrix(fMat, src); in operator =()
1001 dst[SkMatrix::kMScaleX] = SkMScalarToScalar(fMat[0][0]); in operator SkMatrix()
1002 dst[SkMatrix::kMSkewX] = SkMScalarToScalar(fMat[1][0]); in operator SkMatrix()
1003 dst[SkMatrix::kMTransX] = SkMScalarToScalar(fMat[3][0]); in operator SkMatrix()
1005 dst[SkMatrix::kMSkewY] = SkMScalarToScalar(fMat[0][1]); in operator SkMatrix()
1006 dst[SkMatrix::kMScaleY] = SkMScalarToScalar(fMat[1][1]); in operator SkMatrix()
1007 dst[SkMatrix::kMTransY] = SkMScalarToScalar(fMat[3][1]); in operator SkMatrix()
1009 dst[SkMatrix::kMPersp0] = SkMScalarToScalar(fMat[0][3]); in operator SkMatrix()
1010 dst[SkMatrix::kMPersp1] = SkMScalarToScalar(fMat[1][3]); in operator SkMatrix()
1011 dst[SkMatrix::kMPersp2] = SkMScalarToScalar(fMat[3][3]); in operator SkMatrix()