The structure of the QCD potential in 2+1 dimensions