Clean up Mat3 to Quat conversion code
The trigonometric functions don't have to be methods!