Lines Matching refs:fMat
36 const SkScalar* SK_RESTRICT a = &fMat[0][0]; in operator ==()
37 const SkScalar* SK_RESTRICT b = &other.fMat[0][0]; in operator ==()
64 if (0 != perspX() || 0 != perspY() || 0 != perspZ() || 1 != fMat[3][3]) { in recomputeTypeMask()
78 if (0 != fMat[1][0] || 0 != fMat[0][1] || 0 != fMat[0][2] || in recomputeTypeMask()
79 0 != fMat[2][0] || 0 != fMat[1][2] || 0 != fMat[2][1]) { in recomputeTypeMask()
88 const SkScalar* src = &fMat[0][0]; in asColMajorf()
95 dst[0] = fMat[0][0]; dst[1] = fMat[1][0]; dst[2] = fMat[2][0]; dst[3] = fMat[3][0]; in as3x4RowMajorf()
96 dst[4] = fMat[0][1]; dst[5] = fMat[1][1]; dst[6] = fMat[2][1]; dst[7] = fMat[3][1]; in as3x4RowMajorf()
97 dst[8] = fMat[0][2]; dst[9] = fMat[1][2]; dst[10] = fMat[2][2]; dst[11] = fMat[3][2]; in as3x4RowMajorf()
101 const SkScalar* src = &fMat[0][0]; in asColMajord()
108 const SkScalar* src = &fMat[0][0]; in asRowMajorf()
120 const SkScalar* src = &fMat[0][0]; in asRowMajord()
132 SkScalar* dst = &fMat[0][0]; in setColMajorf()
141 SkScalar* dst = &fMat[0][0]; in setColMajord()
150 SkScalar* dst = &fMat[0][0]; in setRowMajorf()
163 SkScalar* dst = &fMat[0][0]; in setRowMajord()
183 fMat[0][0] = 1; in setIdentity()
184 fMat[0][1] = 0; in setIdentity()
185 fMat[0][2] = 0; in setIdentity()
186 fMat[0][3] = 0; in setIdentity()
187 fMat[1][0] = 0; in setIdentity()
188 fMat[1][1] = 1; in setIdentity()
189 fMat[1][2] = 0; in setIdentity()
190 fMat[1][3] = 0; in setIdentity()
191 fMat[2][0] = 0; in setIdentity()
192 fMat[2][1] = 0; in setIdentity()
193 fMat[2][2] = 1; in setIdentity()
194 fMat[2][3] = 0; in setIdentity()
195 fMat[3][0] = 0; in setIdentity()
196 fMat[3][1] = 0; in setIdentity()
197 fMat[3][2] = 0; in setIdentity()
198 fMat[3][3] = 1; in setIdentity()
205 fMat[0][0] = m_00; fMat[0][1] = m_10; fMat[0][2] = m_20; fMat[0][3] = 0; in set3x3()
206 fMat[1][0] = m_01; fMat[1][1] = m_11; fMat[1][2] = m_21; fMat[1][3] = 0; in set3x3()
207 fMat[2][0] = m_02; fMat[2][1] = m_12; fMat[2][2] = m_22; fMat[2][3] = 0; in set3x3()
208 fMat[3][0] = 0; fMat[3][1] = 0; fMat[3][2] = 0; fMat[3][3] = 1; in set3x3()
213 fMat[0][0] = src[0]; fMat[0][1] = src[3]; fMat[0][2] = src[6]; fMat[0][3] = 0; in set3x3RowMajorf()
214 fMat[1][0] = src[1]; fMat[1][1] = src[4]; fMat[1][2] = src[7]; fMat[1][3] = 0; in set3x3RowMajorf()
215 fMat[2][0] = src[2]; fMat[2][1] = src[5]; fMat[2][2] = src[8]; fMat[2][3] = 0; in set3x3RowMajorf()
216 fMat[3][0] = 0; fMat[3][1] = 0; fMat[3][2] = 0; fMat[3][3] = 1; in set3x3RowMajorf()
221 fMat[0][0] = src[0]; fMat[1][0] = src[1]; fMat[2][0] = src[2]; fMat[3][0] = src[3]; in set3x4RowMajorf()
222 fMat[0][1] = src[4]; fMat[1][1] = src[5]; fMat[2][1] = src[6]; fMat[3][1] = src[7]; in set3x4RowMajorf()
223 fMat[0][2] = src[8]; fMat[1][2] = src[9]; fMat[2][2] = src[10]; fMat[3][2] = src[11]; in set3x4RowMajorf()
224 fMat[0][3] = 0; fMat[1][3] = 0; fMat[2][3] = 0; fMat[3][3] = 1; in set3x4RowMajorf()
232 fMat[0][0] = m_00; fMat[0][1] = m_10; fMat[0][2] = m_20; fMat[0][3] = m_30; in set4x4()
233 fMat[1][0] = m_01; fMat[1][1] = m_11; fMat[1][2] = m_21; fMat[1][3] = m_31; in set4x4()
234 fMat[2][0] = m_02; fMat[2][1] = m_12; fMat[2][2] = m_22; fMat[2][3] = m_32; in set4x4()
235 fMat[3][0] = m_03; fMat[3][1] = m_13; fMat[3][2] = m_23; fMat[3][3] = m_33; in set4x4()
249 fMat[3][0] = dx; in setTranslate()
250 fMat[3][1] = dy; in setTranslate()
251 fMat[3][2] = dz; in setTranslate()
262 fMat[3][i] = fMat[0][i] * dx + fMat[1][i] * dy + fMat[2][i] * dz + fMat[3][i]; in preTranslate()
275 fMat[i][0] += fMat[i][3] * dx; in postTranslate()
276 fMat[i][1] += fMat[i][3] * dy; in postTranslate()
277 fMat[i][2] += fMat[i][3] * dz; in postTranslate()
280 fMat[3][0] += dx; in postTranslate()
281 fMat[3][1] += dy; in postTranslate()
282 fMat[3][2] += dz; in postTranslate()
297 fMat[0][0] = sx; in setScale()
298 fMat[1][1] = sy; in setScale()
299 fMat[2][2] = sz; in setScale()
313 fMat[0][i] *= sx; in preScale()
314 fMat[1][i] *= sy; in preScale()
315 fMat[2][i] *= sz; in preScale()
327 fMat[i][0] *= sx; in postScale()
328 fMat[i][1] *= sy; in postScale()
329 fMat[i][2] *= sz; in postScale()
401 SkScalar* result = useStorage ? storage : &fMat[0][0]; in setConcat()
405 result[0] = a.fMat[0][0] * b.fMat[0][0]; in setConcat()
407 result[5] = a.fMat[1][1] * b.fMat[1][1]; in setConcat()
409 result[10] = a.fMat[2][2] * b.fMat[2][2]; in setConcat()
411 result[12] = a.fMat[0][0] * b.fMat[3][0] + a.fMat[3][0]; in setConcat()
412 result[13] = a.fMat[1][1] * b.fMat[3][1] + a.fMat[3][1]; in setConcat()
413 result[14] = a.fMat[2][2] * b.fMat[3][2] + a.fMat[3][2]; in setConcat()
420 value += double(a.fMat[k][i]) * b.fMat[j][k]; in setConcat()
428 memcpy(fMat, storage, sizeof(storage)); in setConcat()
444 return fMat[0][0] * fMat[1][1] * fMat[2][2] * fMat[3][3]; in determinant()
447 double a00 = fMat[0][0]; in determinant()
448 double a01 = fMat[0][1]; in determinant()
449 double a02 = fMat[0][2]; in determinant()
450 double a03 = fMat[0][3]; in determinant()
451 double a10 = fMat[1][0]; in determinant()
452 double a11 = fMat[1][1]; in determinant()
453 double a12 = fMat[1][2]; in determinant()
454 double a13 = fMat[1][3]; in determinant()
455 double a20 = fMat[2][0]; in determinant()
456 double a21 = fMat[2][1]; in determinant()
457 double a22 = fMat[2][2]; in determinant()
458 double a23 = fMat[2][3]; in determinant()
459 double a30 = fMat[3][0]; in determinant()
460 double a31 = fMat[3][1]; in determinant()
461 double a32 = fMat[3][2]; in determinant()
462 double a33 = fMat[3][3]; in determinant()
503 storage->setTranslate(-fMat[3][0], -fMat[3][1], -fMat[3][2]); in invert()
512 if (0 == fMat[0][0] * fMat[1][1] * fMat[2][2]) { in invert()
516 double invXScale = 1 / fMat[0][0]; in invert()
517 double invYScale = 1 / fMat[1][1]; in invert()
518 double invZScale = 1 / fMat[2][2]; in invert()
520 inverse->fMat[0][0] = SkDoubleToScalar(invXScale); in invert()
521 inverse->fMat[0][1] = 0; in invert()
522 inverse->fMat[0][2] = 0; in invert()
523 inverse->fMat[0][3] = 0; in invert()
525 inverse->fMat[1][0] = 0; in invert()
526 inverse->fMat[1][1] = SkDoubleToScalar(invYScale); in invert()
527 inverse->fMat[1][2] = 0; in invert()
528 inverse->fMat[1][3] = 0; in invert()
530 inverse->fMat[2][0] = 0; in invert()
531 inverse->fMat[2][1] = 0; in invert()
532 inverse->fMat[2][2] = SkDoubleToScalar(invZScale); in invert()
533 inverse->fMat[2][3] = 0; in invert()
535 inverse->fMat[3][0] = SkDoubleToScalar(-fMat[3][0] * invXScale); in invert()
536 inverse->fMat[3][1] = SkDoubleToScalar(-fMat[3][1] * invYScale); in invert()
537 inverse->fMat[3][2] = SkDoubleToScalar(-fMat[3][2] * invZScale); in invert()
538 inverse->fMat[3][3] = 1; in invert()
551 double a00 = fMat[0][0]; in invert()
552 double a01 = fMat[0][1]; in invert()
553 double a02 = fMat[0][2]; in invert()
554 double a03 = fMat[0][3]; in invert()
555 double a10 = fMat[1][0]; in invert()
556 double a11 = fMat[1][1]; in invert()
557 double a12 = fMat[1][2]; in invert()
558 double a13 = fMat[1][3]; in invert()
559 double a20 = fMat[2][0]; in invert()
560 double a21 = fMat[2][1]; in invert()
561 double a22 = fMat[2][2]; in invert()
562 double a23 = fMat[2][3]; in invert()
563 double a30 = fMat[3][0]; in invert()
564 double a31 = fMat[3][1]; in invert()
565 double a32 = fMat[3][2]; in invert()
566 double a33 = fMat[3][3]; in invert()
610 inverse->fMat[0][0] = SkDoubleToScalar(a11 * b11 - a12 * b10); in invert()
611 inverse->fMat[0][1] = SkDoubleToScalar(a02 * b10 - a01 * b11); in invert()
612 inverse->fMat[0][2] = SkDoubleToScalar(b03); in invert()
613 inverse->fMat[0][3] = 0; in invert()
614 inverse->fMat[1][0] = SkDoubleToScalar(a12 * b08 - a10 * b11); in invert()
615 inverse->fMat[1][1] = SkDoubleToScalar(a00 * b11 - a02 * b08); in invert()
616 inverse->fMat[1][2] = SkDoubleToScalar(-b01); in invert()
617 inverse->fMat[1][3] = 0; in invert()
618 inverse->fMat[2][0] = SkDoubleToScalar(a10 * b10 - a11 * b08); in invert()
619 inverse->fMat[2][1] = SkDoubleToScalar(a01 * b08 - a00 * b10); in invert()
620 inverse->fMat[2][2] = SkDoubleToScalar(b00); in invert()
621 inverse->fMat[2][3] = 0; in invert()
622 inverse->fMat[3][0] = SkDoubleToScalar(a11 * b07 - a10 * b09 - a12 * b06); in invert()
623 inverse->fMat[3][1] = SkDoubleToScalar(a00 * b09 - a01 * b07 + a02 * b06); in invert()
624 inverse->fMat[3][2] = SkDoubleToScalar(a31 * b01 - a30 * b03 - a32 * b00); in invert()
625 inverse->fMat[3][3] = 1; in invert()
674 inverse->fMat[0][0] = SkDoubleToScalar(a11 * b11 - a12 * b10 + a13 * b09); in invert()
675 inverse->fMat[0][1] = SkDoubleToScalar(a02 * b10 - a01 * b11 - a03 * b09); in invert()
676 inverse->fMat[0][2] = SkDoubleToScalar(a31 * b05 - a32 * b04 + a33 * b03); in invert()
677 inverse->fMat[0][3] = SkDoubleToScalar(a22 * b04 - a21 * b05 - a23 * b03); in invert()
678 inverse->fMat[1][0] = SkDoubleToScalar(a12 * b08 - a10 * b11 - a13 * b07); in invert()
679 inverse->fMat[1][1] = SkDoubleToScalar(a00 * b11 - a02 * b08 + a03 * b07); in invert()
680 inverse->fMat[1][2] = SkDoubleToScalar(a32 * b02 - a30 * b05 - a33 * b01); in invert()
681 inverse->fMat[1][3] = SkDoubleToScalar(a20 * b05 - a22 * b02 + a23 * b01); in invert()
682 inverse->fMat[2][0] = SkDoubleToScalar(a10 * b10 - a11 * b08 + a13 * b06); in invert()
683 inverse->fMat[2][1] = SkDoubleToScalar(a01 * b08 - a00 * b10 - a03 * b06); in invert()
684 inverse->fMat[2][2] = SkDoubleToScalar(a30 * b04 - a31 * b02 + a33 * b00); in invert()
685 inverse->fMat[2][3] = SkDoubleToScalar(a21 * b02 - a20 * b04 - a23 * b00); in invert()
686 inverse->fMat[3][0] = SkDoubleToScalar(a11 * b07 - a10 * b09 - a12 * b06); in invert()
687 inverse->fMat[3][1] = SkDoubleToScalar(a00 * b09 - a01 * b07 + a02 * b06); in invert()
688 inverse->fMat[3][2] = SkDoubleToScalar(a31 * b01 - a30 * b03 - a32 * b00); in invert()
689 inverse->fMat[3][3] = SkDoubleToScalar(a20 * b03 - a21 * b01 + a22 * b00); in invert()
705 swap(fMat[0][1], fMat[1][0]); in transpose()
706 swap(fMat[0][2], fMat[2][0]); in transpose()
707 swap(fMat[0][3], fMat[3][0]); in transpose()
708 swap(fMat[1][2], fMat[2][1]); in transpose()
709 swap(fMat[1][3], fMat[3][1]); in transpose()
710 swap(fMat[2][3], fMat[3][2]); in transpose()
724 value += fMat[j][i] * src[j]; in mapScalars()
880 proc(fMat, src2, count, dst4); in map2()
890 proc(fMat, src2, count, dst4); in map2()
910 if (SkScalarAbs(fMat[0][0]) > epsilon) { in preserves2dAxisAlignment()
914 if (SkScalarAbs(fMat[0][1]) > epsilon) { in preserves2dAxisAlignment()
918 if (SkScalarAbs(fMat[1][0]) > epsilon) { in preserves2dAxisAlignment()
922 if (SkScalarAbs(fMat[1][1]) > epsilon) { in preserves2dAxisAlignment()
941 fMat[0][0], fMat[1][0], fMat[2][0], fMat[3][0], in dump()
942 fMat[0][1], fMat[1][1], fMat[2][1], fMat[3][1], in dump()
943 fMat[0][2], fMat[1][2], fMat[2][2], fMat[3][2], in dump()
944 fMat[0][3], fMat[1][3], fMat[2][3], fMat[3][3]); in dump()
973 initFromMatrix(fMat, src); in operator =()
986 dst[SkMatrix::kMScaleX] = fMat[0][0]; in operator SkMatrix()
987 dst[SkMatrix::kMSkewX] = fMat[1][0]; in operator SkMatrix()
988 dst[SkMatrix::kMTransX] = fMat[3][0]; in operator SkMatrix()
990 dst[SkMatrix::kMSkewY] = fMat[0][1]; in operator SkMatrix()
991 dst[SkMatrix::kMScaleY] = fMat[1][1]; in operator SkMatrix()
992 dst[SkMatrix::kMTransY] = fMat[3][1]; in operator SkMatrix()
994 dst[SkMatrix::kMPersp0] = fMat[0][3]; in operator SkMatrix()
995 dst[SkMatrix::kMPersp1] = fMat[1][3]; in operator SkMatrix()
996 dst[SkMatrix::kMPersp2] = fMat[3][3]; in operator SkMatrix()