allenchou.net
Game Math: Quaternion Implementations | Ming-Lun "Allen" Chou | 周明倫
[latexpage] This post is part of my Game Math Series. I have covered the basics of quaternions. In this post, I will show some examples of quaternion implementations. The Interface We want our quaternion class to handle basic arithmetics (addition, subtraction, and scalar multiplciation), as well as various operations (normalization, re-normalization, inversion, dot product, projection,