Angular dependence of the upper critical field of type II superconductors; theory