summaryrefslogtreecommitdiffstats
path: root/libdimension/geometry.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-11-17 02:38:04 -0500
committerTavian Barnes <tavianator@gmail.com>2010-11-17 02:38:04 -0500
commit0d905311779fb10b2657a6741fac7eab55e974af (patch)
tree79bbbbccb667ebed2ce9edb9d6dc337805389ce6 /libdimension/geometry.c
parent294d815e27f3fe79df463b5504ca9099667574d8 (diff)
downloaddimension-0d905311779fb10b2657a6741fac7eab55e974af.tar.xz
Fix dmnsn_matrix_inverse_generic().
Diffstat (limited to 'libdimension/geometry.c')
-rw-r--r--libdimension/geometry.c2
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];
}
}