Lines Matching refs:m

38 		detail::tmat3x3<T, P> const & m  argument
41 detail::tmat3x3<T, P> Result(m);
44 …detail::tvec3<T, P> Translation = Result * detail::tvec3<T, P>(-detail::tvec2<T, P>(m[2]), m[2][2]…
52 detail::tmat4x4<T, P> const & m argument
55 detail::tmat4x4<T, P> Result(m);
58 …detail::tvec4<T, P> Translation = Result * detail::tvec4<T, P>(-detail::tvec3<T, P>(m[3]), m[3][3]…
66 detail::tmat2x2<T, P> const & m argument
69 T Determinant = m[0][0] * m[1][1] - m[1][0] * m[0][1];
72 + m[1][1] / Determinant,
73 - m[0][1] / Determinant,
74 - m[1][0] / Determinant,
75 + m[0][0] / Determinant);
83 detail::tmat3x3<T, P> const & m argument
87 + m[0][0] * (m[1][1] * m[2][2] - m[1][2] * m[2][1])
88 - m[0][1] * (m[1][0] * m[2][2] - m[1][2] * m[2][0])
89 + m[0][2] * (m[1][0] * m[2][1] - m[1][1] * m[2][0]);
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]);
109 detail::tmat4x4<T, P> const & m argument
112 T SubFactor00 = m[2][2] * m[3][3] - m[3][2] * m[2][3];
113 T SubFactor01 = m[2][1] * m[3][3] - m[3][1] * m[2][3];
114 T SubFactor02 = m[2][1] * m[3][2] - m[3][1] * m[2][2];
115 T SubFactor03 = m[2][0] * m[3][3] - m[3][0] * m[2][3];
116 T SubFactor04 = m[2][0] * m[3][2] - m[3][0] * m[2][2];
117 T SubFactor05 = m[2][0] * m[3][1] - m[3][0] * m[2][1];
118 T SubFactor06 = m[1][2] * m[3][3] - m[3][2] * m[1][3];
119 T SubFactor07 = m[1][1] * m[3][3] - m[3][1] * m[1][3];
120 T SubFactor08 = m[1][1] * m[3][2] - m[3][1] * m[1][2];
121 T SubFactor09 = m[1][0] * m[3][3] - m[3][0] * m[1][3];
122 T SubFactor10 = m[1][0] * m[3][2] - m[3][0] * m[1][2];
123 T SubFactor11 = m[1][1] * m[3][3] - m[3][1] * m[1][3];
124 T SubFactor12 = m[1][0] * m[3][1] - m[3][0] * m[1][1];
125 T SubFactor13 = m[1][2] * m[2][3] - m[2][2] * m[1][3];
126 T SubFactor14 = m[1][1] * m[2][3] - m[2][1] * m[1][3];
127 T SubFactor15 = m[1][1] * m[2][2] - m[2][1] * m[1][2];
128 T SubFactor16 = m[1][0] * m[2][3] - m[2][0] * m[1][3];
129 T SubFactor17 = m[1][0] * m[2][2] - m[2][0] * m[1][2];
130 T SubFactor18 = m[1][0] * m[2][1] - m[2][0] * m[1][1];
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];