

Quaternion ResourcesImportant note: Much of this material was arrived at by trial and error, rather than recourse to mathematical theory. I'm not saying anything is actually original, just that one or two aspects may turn out to be "flipped" compared to a more "textbook" implementation. Also the calculation functions could probably be better implemented using data structures to represent quaternions, but I never really bothered to learn Gamemaker data structures.
