completed Quaternion calc