A quaternion is a way of representing a rotation in three dimensions by storing a rotation and an angle. It properly forms a topological 3-sphere, which allows it to avoid the gimbal lock that plagues the more human-readable euler angle. Read more here: https://euclideanspace.com/maths/algebra/realNormedAlgebra/quaternions/geometric/orthogonal