mirror of
https://github.com/recp/cglm.git
synced 2026-11-18 10:17:13 -06:00
add tests for mat2 and its call version
This commit is contained in:
1 parent
43ae3b332a
commit
ad9370537c
6 files changed
+450
-18
No files matched your search
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user