Double-group theory on the half-shell and the two-level system. I. Rotation and half-integral spin states