mrdoob/three.js — pull request #2825 by bhouston (2012-12-20 13:33:55+00:00)
Title: Quaternion polish: toEuler(), unit tests, reduced code duplication.

I added a Quaternion.toEuler() method made by Hasan Kamal-Al-Deen.

I also created a suite of Quaternion unit tests that cover everything but I Quaternion.slerp/slerpSelf.

I have also reduced a bit of unnecessary duplication in Quaternion via:

* Merging slerp and slerpSelf
* Merging multiply and multiplySelf

I moved up the Matrix4.set* functions from the middle of the Matrix4.js file to near the top as that is where these set* functions are located in the other math classes and it makes them easier to find.

All unit tests pass and examples run without errors.