diff options
author | Tavian Barnes <tavianator@gmail.com> | 2009-06-13 22:55:55 +0000 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2009-06-13 22:55:55 +0000 |
commit | 93a7393b71ccd772b7ee40d83313b80e1dc64165 (patch) | |
tree | 8639b41f9d2e10287c0b074e84a1efe815d37491 | |
parent | 836d8f7138633517c6e503520f7be354ac32d836 (diff) | |
download | dimension-93a7393b71ccd772b7ee40d83313b80e1dc64165.tar.xz |
Fix dmnsn_matrix_vector_mul typo.
-rw-r--r-- | libdimension/geometry.c | 4 |
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); |