Lines Matching refs:Inverse
71 detail::tmat2x2<T, P> Inverse( local
77 return Inverse;
91 detail::tmat3x3<T, P> Inverse; local
92 Inverse[0][0] = + (m[1][1] * m[2][2] - m[2][1] * m[1][2]);
93 Inverse[0][1] = - (m[1][0] * m[2][2] - m[2][0] * m[1][2]);
94 Inverse[0][2] = + (m[1][0] * m[2][1] - m[2][0] * m[1][1]);
95 Inverse[1][0] = - (m[0][1] * m[2][2] - m[2][1] * m[0][2]);
96 Inverse[1][1] = + (m[0][0] * m[2][2] - m[2][0] * m[0][2]);
97 Inverse[1][2] = - (m[0][0] * m[2][1] - m[2][0] * m[0][1]);
98 Inverse[2][0] = + (m[0][1] * m[1][2] - m[1][1] * m[0][2]);
99 Inverse[2][1] = - (m[0][0] * m[1][2] - m[1][0] * m[0][2]);
100 Inverse[2][2] = + (m[0][0] * m[1][1] - m[1][0] * m[0][1]);
101 Inverse /= Determinant;
103 return Inverse;
132 detail::tmat4x4<T, P> Inverse; local
133 Inverse[0][0] = + (m[1][1] * SubFactor00 - m[1][2] * SubFactor01 + m[1][3] * SubFactor02);
134 Inverse[0][1] = - (m[1][0] * SubFactor00 - m[1][2] * SubFactor03 + m[1][3] * SubFactor04);
135 Inverse[0][2] = + (m[1][0] * SubFactor01 - m[1][1] * SubFactor03 + m[1][3] * SubFactor05);
136 Inverse[0][3] = - (m[1][0] * SubFactor02 - m[1][1] * SubFactor04 + m[1][2] * SubFactor05);
138 Inverse[1][0] = - (m[0][1] * SubFactor00 - m[0][2] * SubFactor01 + m[0][3] * SubFactor02);
139 Inverse[1][1] = + (m[0][0] * SubFactor00 - m[0][2] * SubFactor03 + m[0][3] * SubFactor04);
140 Inverse[1][2] = - (m[0][0] * SubFactor01 - m[0][1] * SubFactor03 + m[0][3] * SubFactor05);
141 Inverse[1][3] = + (m[0][0] * SubFactor02 - m[0][1] * SubFactor04 + m[0][2] * SubFactor05);
143 Inverse[2][0] = + (m[0][1] * SubFactor06 - m[0][2] * SubFactor07 + m[0][3] * SubFactor08);
144 Inverse[2][1] = - (m[0][0] * SubFactor06 - m[0][2] * SubFactor09 + m[0][3] * SubFactor10);
145 Inverse[2][2] = + (m[0][0] * SubFactor11 - m[0][1] * SubFactor09 + m[0][3] * SubFactor12);
146 Inverse[2][3] = - (m[0][0] * SubFactor08 - m[0][1] * SubFactor10 + m[0][2] * SubFactor12);
148 Inverse[3][0] = - (m[0][1] * SubFactor13 - m[0][2] * SubFactor14 + m[0][3] * SubFactor15);
149 Inverse[3][1] = + (m[0][0] * SubFactor13 - m[0][2] * SubFactor16 + m[0][3] * SubFactor17);
150 Inverse[3][2] = - (m[0][0] * SubFactor14 - m[0][1] * SubFactor16 + m[0][3] * SubFactor18);
151 Inverse[3][3] = + (m[0][0] * SubFactor15 - m[0][1] * SubFactor17 + m[0][2] * SubFactor18);
154 + m[0][0] * Inverse[0][0]
155 + m[0][1] * Inverse[0][1]
156 + m[0][2] * Inverse[0][2]
157 + m[0][3] * Inverse[0][3];
159 Inverse /= Determinant;
161 return Inverse;