Skip to content
Snippets Groups Projects
Commit 7fe50b0a authored by Niklaus Johner's avatar Niklaus Johner
Browse files

Fix bug in Rotation3.find_invariant used notably in the initialization Rotation3(Mat3)

and in Rotation3.SetRotationMatrix(Mat3)
parent c5000eac
No related branches found
No related tags found
No related merge requests found
...@@ -302,7 +302,7 @@ Vec3 Rotation3::find_invariant_vector(Mat3 rot) ...@@ -302,7 +302,7 @@ Vec3 Rotation3::find_invariant_vector(Mat3 rot)
Real minors[9]; Real minors[9];
for(int i=2;i>=0;--i){ for(int i=2;i>=0;--i){
for(int j=2;j>=0;--j){ for(int j=2;j>=0;--j){
minors[3*i+j]=Minor(rot,i,j); minors[3*(2-i)+(2-j)]=Minor(rot,i,j);
} }
} }
Real* where = ::std::max_element(minors, minors+9); Real* where = ::std::max_element(minors, minors+9);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment