diff options
author | Tavian Barnes <tavianator@gmail.com> | 2010-11-17 02:38:04 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2010-11-17 02:38:04 -0500 |
commit | 0d905311779fb10b2657a6741fac7eab55e974af (patch) | |
tree | 79bbbbccb667ebed2ce9edb9d6dc337805389ce6 /libdimension | |
parent | 294d815e27f3fe79df463b5504ca9099667574d8 (diff) | |
download | dimension-0d905311779fb10b2657a6741fac7eab55e974af.tar.xz |
Fix dmnsn_matrix_inverse_generic().
Diffstat (limited to 'libdimension')
-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]; } } |