add tests for mat2 and its call version

This commit is contained in:
Recep Aslantas committed 2020-02-24 22:14:26 +03:00
1 parent 43ae3b332a
commit ad9370537c
6 files changed
+450 -18

No files matched your search

+1 -1
View File
@@ -245,7 +245,7 @@ glm_mat2_inv(mat2 mat, mat2 dest) {
float a = mat[0][0], b = mat[0][1],
c = mat[1][0], d = mat[1][1];
det = 1.0f / (a * d - c * b);
det = 1.0f / (a * d - b * c);
dest[0][0] = d * det;
dest[0][1] = -b * det;