johnpmayer / elm-linear-algebra

BSD 3-Clause "New" or "Revised" License
16 stars 21 forks source link

Add quaternions #9

Closed mgold closed 9 years ago

mgold commented 9 years ago

My long-term goal is to implement an easily-deployed trackball, copying heavily from three.js. Part of the implementation involves multiplying a vector by a quaternion, so I figure, why not put it all in one place?

If you're okay adding this, I can do some of the legwork, but it seems the relevant code is here and here. Thoughts?

TheSeamau5 commented 9 years ago

The best bet would probably be to simply alias Vector4 and add the quaternion operations on top of that.

mgold commented 9 years ago

I can look into that, good idea!