Add test for invert 4x4 matrix specialization

This commit is contained in:
Tor Harald Sandve
2017-08-29 11:01:20 +02:00
parent 6716ca63c9
commit 210f1edf25
3 changed files with 80 additions and 2 deletions

View File

@@ -169,8 +169,8 @@ static inline K invertMatrix (const FieldMatrix<K,4,4> &matrix, FieldMatrix<K,4,
}
return 1.0;
}
det = 1.0 / det;
inverse *= det;
K inv_det = 1.0 / det;
inverse *= inv_det;
return det;
}