if you're trying to move away from Euler angles have you looked at quaternion angles?

see e.g vec_rotateaxis