How would you prefer the API work? You cannot do operator overloading in JS so you cannot make it work similar to GLSL. I don’t think anybody prefers this style of vector calculations but it’s the best we get given the garbage collector and other limitations of Javascript. Bablyonjs and glmatrix both use a similar model for their math calculations.
6 Likes