Euler angles to a rotation matrix. Also fix quat::rotate() which was not building the correct quaternion.