From 0d905311779fb10b2657a6741fac7eab55e974af Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Wed, 17 Nov 2010 02:38:04 -0500 Subject: Fix dmnsn_matrix_inverse_generic(). --- libdimension/geometry.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libdimension') 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]; } } -- cgit v1.2.3