johnpmayer/elm-linear-algebra — pull request #4 by dackerman (2014-09-01 20:19:50+00:00)
Title: Fix setX, setY, and setZ to use correct MJS_FLOAT_ARRAY_TYPEconstructor

Square brackets were missing when creating a Float32Array, causing a
"RangeError" at runtime when trying to set values into a vec3.

The specific error was "Uncaught RangeError: Invalid typed array length", which just seems to be because the 3 arg version of the Float32Array constructor expects the first argument to be the length, which the code tries to set as a float value.