Quaternion Test code from the irrlicht engine.