summaryrefslogtreecommitdiffstats
path: root/libdimension
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2009-06-13 22:55:55 +0000
committerTavian Barnes <tavianator@gmail.com>2009-06-13 22:55:55 +0000
commit93a7393b71ccd772b7ee40d83313b80e1dc64165 (patch)
tree8639b41f9d2e10287c0b074e84a1efe815d37491 /libdimension
parent836d8f7138633517c6e503520f7be354ac32d836 (diff)
downloaddimension-93a7393b71ccd772b7ee40d83313b80e1dc64165.tar.xz
Fix dmnsn_matrix_vector_mul typo.
Diffstat (limited to 'libdimension')
-rw-r--r--libdimension/geometry.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libdimension/geometry.c b/libdimension/geometry.c
index 548aae1..846095c 100644
--- a/libdimension/geometry.c
+++ b/libdimension/geometry.c
@@ -196,8 +196,8 @@ dmnsn_matrix_vector_mul(dmnsn_matrix lhs, dmnsn_vector rhs)
double w;
r.x = lhs.n00*rhs.x + lhs.n01*rhs.y + lhs.n02*rhs.z + lhs.n03;
- r.x = lhs.n10*rhs.x + lhs.n11*rhs.y + lhs.n12*rhs.z + lhs.n13;
- r.x = lhs.n20*rhs.x + lhs.n21*rhs.y + lhs.n22*rhs.z + lhs.n23;
+ r.y = lhs.n10*rhs.x + lhs.n11*rhs.y + lhs.n12*rhs.z + lhs.n13;
+ r.z = lhs.n20*rhs.x + lhs.n21*rhs.y + lhs.n22*rhs.z + lhs.n23;
w = lhs.n30*rhs.x + lhs.n31*rhs.y + lhs.n32*rhs.z + lhs.n33;
return dmnsn_vector_div(r, w);