Lines Matching refs:outMatrix
12 SkScalar SkInvert2x2Matrix(const SkScalar inMatrix[4], SkScalar outMatrix[4]) { in SkInvert2x2Matrix()
20 if (outMatrix) { in SkInvert2x2Matrix()
22 outMatrix[0] = a11 * invdet; in SkInvert2x2Matrix()
23 outMatrix[1] = -a01 * invdet; in SkInvert2x2Matrix()
24 outMatrix[2] = -a10 * invdet; in SkInvert2x2Matrix()
25 outMatrix[3] = a00 * invdet; in SkInvert2x2Matrix()
28 if (!SkScalarsAreFinite(outMatrix, 4)) { in SkInvert2x2Matrix()
35 SkScalar SkInvert3x3Matrix(const SkScalar inMatrix[9], SkScalar outMatrix[9]) { in SkInvert3x3Matrix()
52 if (outMatrix) { in SkInvert3x3Matrix()
54 outMatrix[0] = b01 * invdet; in SkInvert3x3Matrix()
55 outMatrix[1] = (-a22 * a01 + a02 * a21) * invdet; in SkInvert3x3Matrix()
56 outMatrix[2] = ( a12 * a01 - a02 * a11) * invdet; in SkInvert3x3Matrix()
57 outMatrix[3] = b11 * invdet; in SkInvert3x3Matrix()
58 outMatrix[4] = ( a22 * a00 - a02 * a20) * invdet; in SkInvert3x3Matrix()
59 outMatrix[5] = (-a12 * a00 + a02 * a10) * invdet; in SkInvert3x3Matrix()
60 outMatrix[6] = b21 * invdet; in SkInvert3x3Matrix()
61 outMatrix[7] = (-a21 * a00 + a01 * a20) * invdet; in SkInvert3x3Matrix()
62 outMatrix[8] = ( a11 * a00 - a01 * a10) * invdet; in SkInvert3x3Matrix()
65 if (!SkScalarsAreFinite(outMatrix, 9)) { in SkInvert3x3Matrix()
72 SkScalar SkInvert4x4Matrix(const SkScalar inMatrix[16], SkScalar outMatrix[16]) { in SkInvert4x4Matrix()
105 if (outMatrix) { in SkInvert4x4Matrix()
120 outMatrix[0] = a11 * b11 - a12 * b10 + a13 * b09; in SkInvert4x4Matrix()
121 outMatrix[1] = a02 * b10 - a01 * b11 - a03 * b09; in SkInvert4x4Matrix()
122 outMatrix[2] = a31 * b05 - a32 * b04 + a33 * b03; in SkInvert4x4Matrix()
123 outMatrix[3] = a22 * b04 - a21 * b05 - a23 * b03; in SkInvert4x4Matrix()
124 outMatrix[4] = a12 * b08 - a10 * b11 - a13 * b07; in SkInvert4x4Matrix()
125 outMatrix[5] = a00 * b11 - a02 * b08 + a03 * b07; in SkInvert4x4Matrix()
126 outMatrix[6] = a32 * b02 - a30 * b05 - a33 * b01; in SkInvert4x4Matrix()
127 outMatrix[7] = a20 * b05 - a22 * b02 + a23 * b01; in SkInvert4x4Matrix()
128 outMatrix[8] = a10 * b10 - a11 * b08 + a13 * b06; in SkInvert4x4Matrix()
129 outMatrix[9] = a01 * b08 - a00 * b10 - a03 * b06; in SkInvert4x4Matrix()
130 outMatrix[10] = a30 * b04 - a31 * b02 + a33 * b00; in SkInvert4x4Matrix()
131 outMatrix[11] = a21 * b02 - a20 * b04 - a23 * b00; in SkInvert4x4Matrix()
132 outMatrix[12] = a11 * b07 - a10 * b09 - a12 * b06; in SkInvert4x4Matrix()
133 outMatrix[13] = a00 * b09 - a01 * b07 + a02 * b06; in SkInvert4x4Matrix()
134 outMatrix[14] = a31 * b01 - a30 * b03 - a32 * b00; in SkInvert4x4Matrix()
135 outMatrix[15] = a20 * b03 - a21 * b01 + a22 * b00; in SkInvert4x4Matrix()
139 if (!SkScalarsAreFinite(outMatrix, 16)) { in SkInvert4x4Matrix()