Skip to content
Snippets Groups Projects
Commit c3efcc6b authored by Oliver Sander's avatar Oliver Sander Committed by sander@FU-BERLIN.DE
Browse files

bugfix: basis vectors of the orthonormal frame were not normalized

[[Imported from SVN: r7033]]
parent 071b7f9f
No related branches found
No related tags found
No related merge requests found
......@@ -325,6 +325,10 @@ public:
if (data_[N-1] > 0)
for (size_t j=0; j<N-1; j++)
result[j][N-1] *= -1;
// normalize the rows to make the orthogonal basis orthonormal
for (size_t i=0; i<N-1; i++)
result[i] /= result[i].two_norm();
return result;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment