Closed eamsden closed 7 years ago
Hi @eamsden, I'm sorry I didn't notice this wonderful PR until today. I created this package for my internal using and it's quite incomplete and only designed with my own need in mind. I never expected it's used by others and even get contributions until I saw your PR. It's very encouraging. Thanks!
Hi @manyoo I hope you will put this package out there for others to use. The API design is very good and it was quite helpful to me in my project. Glad I could help out in return a bit!
This PR adds support for three.js quaternions to ghcjs-three.
GHCJS.Three.Quaternion
wraps most operations on quaternions provided by Three.jsGHCJS.Three.HasXYZ
has an addedHasW
class to support the 4th element of quaternions in a way compatible with vectorsGHCJS.Three.Object3D
adds two class methods to support direct access to an object's rotational quaternionAll of these are in 9cdec22, which could be rebased onto master.
Two other commits contain changes I had to make to get ghcjs-three building, since the stack.yaml in the master branch specifies the compiler but no installation information.