add tests for mat2 and its call version

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

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;