Fix matrix vector multiplication.
commitd1352d9c7421311f544f098d86e742b05a5bfca1
authorRandall Britten <r.britten@auckland.ac.nz>
dateWed 7 May 2014, 15:30 (12 years ago)
parent8b6b119
tests/compiler/test-files/good/Crate.elm+1−1
@@ -17,7 +17,7 @@ rotatedFace (angleX,angleY) =
1717 y = makeRotate (degrees angleY) (v3 0 1 0)
1818 t = x `mul` y `mul` makeTranslate (v3 0 0 1)
1919 in
20− map (mapTriangle (\x -> {x | pos <- mul4x4 t x.pos })) face
20+ map (mapTriangle (\x -> {x | pos <- mulVec3 t x.pos })) face
2121
2222face : [Triangle { pos:Vec3, coord:Vec3 }]
2323face =