3 ms·
> I can’t agree that JavaScript itself is great. Especially when working in an environment where Quaternions[0] are a core concept and one which often must be
by AdieuToLogic 7y ago
> I can’t agree that JavaScript itself is great.
Especially when working in an environment where Quaternions[0] are a core concept and one which often must be manipulated. Never mind JavaScript's inability to encapsulate.
0 - https://en.wikipedia.org/wiki/Quaternions_and_spatial_rotation https://en.wikipedia.org/wiki/Quaternions_and_spatial_rotati...
- klodolph 7y agoEh, I don’t buy that reasoning. JavaScript is excellent at encapsulation, since you can just use closures. Never had a problem manipulating quaternions in JavaScript. I’ve written a few 3D games in JavaScript or TypeScript. Some using engines like Three.js, others using bare WebGL, and some using math libraries like glMatrix, others using math routines that I wrote. glMatrix is a fine way to work with quaternions. http://glmatrix.net/docs/module-quat.html http://glmatrix.net/docs/module-quat.html