diff options
-rw-r--r-- | libdimension/geometry.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libdimension/geometry.c b/libdimension/geometry.c index 11a59d3..56cfbaa 100644 --- a/libdimension/geometry.c +++ b/libdimension/geometry.c @@ -282,7 +282,7 @@ dmnsn_matrix_inverse_generic(dmnsn_matrix A) /* Find the translational component of the inverse */ for (size_t i = 0; i < 3; ++i) { for (size_t j = 0; j < 3; ++j) { - inv.n[i][3] -= inv.n[i][j]*A.n[i][3]; + inv.n[i][3] -= inv.n[i][j]*A.n[j][3]; } } |