From 7da67046423046bf05433d72d5823005064ef97b Mon Sep 17 00:00:00 2001 From: Stephane Del Pino <stephane.delpino44@gmail.com> Date: Tue, 3 Jul 2018 19:13:25 +0200 Subject: [PATCH] Fixed TinyMatrix<2,T> inverse computed the transposed of the inverse... --- src/algebra/TinyMatrix.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/algebra/TinyMatrix.hpp b/src/algebra/TinyMatrix.hpp index 027c7c191..fb0f94ad0 100644 --- a/src/algebra/TinyMatrix.hpp +++ b/src/algebra/TinyMatrix.hpp @@ -431,8 +431,8 @@ TinyMatrix<2,T> inverse(const TinyMatrix<2,T>& A) const T determinent = det(A); const T inv_determinent = 1./determinent; - TinyMatrix<2,T> A_cofactors_T(A(1,1), -A(1,0), - -A(0,1), A(0,0)); + TinyMatrix<2,T> A_cofactors_T(A(1,1), -A(0,1), + -A(1,0), A(0,0)); return std::move(A_cofactors_T *= inv_determinent); } -- GitLab