Lines Matching refs:M
66 friend bool operator==(const Matrix &M, const Matrix &N);
67 friend bool operator!=(const Matrix &M, const Matrix &N);
69 friend Matrix operator+(const Matrix &M, const Matrix &N);
70 friend Matrix operator-(const Matrix &M, const Matrix &N);
71 friend Matrix operator*(float s, const Matrix &M);
72 friend Matrix operator*(const Matrix &M, const Matrix &N);
73 friend Matrix operator/(const Matrix &M, float s);
77 static float det(const Matrix &M);
89 static float det3(const Matrix &M);
91 static float tr(const Matrix &M);
121 Matrix &M = *this; in Matrix() local
123 M(1, 1) = s; M(1, 2) = 0; M(1, 3) = 0; M(1, 4) = 0; in Matrix()
124 M(2, 1) = 0; M(2, 2) = s; M(2, 3) = 0; M(2, 4) = 0; in Matrix()
125 M(3, 1) = 0; M(3, 2) = 0; M(3, 3) = s; M(3, 4) = 0; in Matrix()
126 M(4, 1) = 0; M(4, 2) = 0; M(4, 3) = 0; M(4, 4) = s; in Matrix()
131 Matrix &M = *this; in Matrix() local
133 M(1, 1) = m[0]; M(1, 2) = m[1]; M(1, 3) = m[2]; M(1, 4) = m[3]; in Matrix()
134 M(2, 1) = m[4]; M(2, 2) = m[5]; M(2, 3) = m[6]; M(2, 4) = m[7]; in Matrix()
135 M(3, 1) = m[8]; M(3, 2) = m[8]; M(3, 3) = m[10]; M(3, 4) = m[11]; in Matrix()
136 M(4, 1) = m[12]; M(4, 2) = m[13]; M(4, 3) = m[14]; M(4, 4) = m[15]; in Matrix()
141 Matrix &M = *this; in Matrix() local
143 M[0][0] = m[0][0]; M[0][1] = m[0][1]; M[0][2] = m[0][2]; M[0][3] = m[0][3]; in Matrix()
144 M[1][0] = m[1][0]; M[1][1] = m[1][1]; M[1][2] = m[1][2]; M[1][3] = m[1][3]; in Matrix()
145 M[2][0] = m[2][0]; M[2][1] = m[2][1]; M[2][2] = m[2][2]; M[2][3] = m[2][3]; in Matrix()
146 M[3][0] = m[3][0]; M[3][1] = m[3][1]; M[3][2] = m[3][2]; M[3][3] = m[3][3]; in Matrix()
153 Matrix &M = *this; in Matrix() local
155 M(1, 1) = m11; M(1, 2) = m12; M(1, 3) = m13; M(1, 4) = 0; in Matrix()
156 M(2, 1) = m21; M(2, 2) = m22; M(2, 3) = m23; M(2, 4) = 0; in Matrix()
157 M(3, 1) = m31; M(3, 2) = m32; M(3, 3) = m33; M(3, 4) = 0; in Matrix()
158 M(4, 1) = 0; M(4, 2) = 0; M(4, 3) = 0; M(4, 4) = 1; in Matrix()
166 Matrix &M = *this; in Matrix() local
168 M(1, 1) = m11; M(1, 2) = m12; M(1, 3) = m13; M(1, 4) = m14; in Matrix()
169 M(2, 1) = m21; M(2, 2) = m22; M(2, 3) = m23; M(2, 4) = m24; in Matrix()
170 M(3, 1) = m31; M(3, 2) = m32; M(3, 3) = m33; M(3, 4) = m34; in Matrix()
171 M(4, 1) = m41; M(4, 2) = m42; M(4, 3) = m43; M(4, 4) = m44; in Matrix()
176 Matrix &M = *this; in Matrix() local
178 M(1, 1) = v1.x; M(1, 2) = v2.x; M(1, 3) = v3.x; M(1, 4) = 0; in Matrix()
179 M(2, 1) = v1.y; M(2, 2) = v2.y; M(2, 3) = v3.y; M(2, 4) = 0; in Matrix()
180 M(3, 1) = v1.z; M(3, 2) = v2.z; M(3, 3) = v3.z; M(3, 4) = 0; in Matrix()
181 M(4, 1) = 0; M(4, 2) = 0; M(4, 3) = 0; M(4, 4) = 1; in Matrix()
186 Matrix &M = *this; in operator =() local
188 M(1, 1) = N(1, 1); M(1, 2) = N(1, 2); M(1, 3) = N(1, 3); M(1, 4) = N(1, 4); in operator =()
189 M(2, 1) = N(2, 1); M(2, 2) = N(2, 2); M(2, 3) = N(2, 3); M(2, 4) = N(2, 4); in operator =()
190 M(3, 1) = N(3, 1); M(3, 2) = N(3, 2); M(3, 3) = N(3, 3); M(3, 4) = N(3, 4); in operator =()
191 M(4, 1) = N(4, 1); M(4, 2) = N(4, 2); M(4, 3) = N(4, 3); M(4, 4) = N(4, 4); in operator =()
193 return M; in operator =()