It is not quite easy to write your own code to rotate coefficients. If you are using Gaussian, after performing single point at orientation A, then when you calculate single point of orientation B, you can use guess=read keyword to read wavefunction in .chk file of orientation A, the SCF convergence should be reached after only one SCF cycle, so the cost is negligible.
]]>