public static float dot(Quaternion a, Quaternion b) { return (a.w * b.w + a.x * b.x + a.y * b.y + a.z * b.z); }