Mercurial > hg > orthanc-stone
comparison Framework/Toolbox/LinearAlgebra.h @ 166:4f661e2f7b6c wasm
cont
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 22 Feb 2018 19:36:23 +0100 |
parents | 8d50e6be565d |
children | 7105e51e4907 |
comparison
equal
deleted
inserted
replaced
165:8d50e6be565d | 166:4f661e2f7b6c |
---|---|
182 { | 182 { |
183 return Product(Product(a, b), c); | 183 return Product(Product(a, b), c); |
184 } | 184 } |
185 | 185 |
186 | 186 |
187 inline Vector Product(const Matrix& a, | |
188 const Matrix& b, | |
189 const Matrix& c, | |
190 const Vector& d) | |
191 { | |
192 return Product(Product(a, b, c), d); | |
193 } | |
194 | |
195 | |
187 double ComputeDeterminant(const Matrix& a); | 196 double ComputeDeterminant(const Matrix& a); |
188 | 197 |
189 bool IsOrthogonalMatrix(const Matrix& q, | 198 bool IsOrthogonalMatrix(const Matrix& q, |
190 double threshold); | 199 double threshold); |
191 | 200 |
218 | 227 |
219 void AlignVectorsWithRotation(Matrix& r, | 228 void AlignVectorsWithRotation(Matrix& r, |
220 const Vector& a, | 229 const Vector& a, |
221 const Vector& b); | 230 const Vector& b); |
222 | 231 |
223 Matrix InvertScaleTranslationMatrix(const Matrix& t); | 232 Matrix InvertScalingTranslationMatrix(const Matrix& t); |
224 | 233 |
225 bool IsShearMatrix(const Matrix& shear); | 234 bool IsShearMatrix(const Matrix& shear); |
226 | 235 |
227 Matrix InvertShearMatrix(const Matrix& shear); | 236 Matrix InvertShearMatrix(const Matrix& shear); |
228 }; | 237 }; |