Rotate azimuthal distributions by pi/2

This commit is contained in:
Sterling Harper 2019-09-24 15:15:30 -04:00
parent 684bc7ef1b
commit 45aeb35aa9
2 changed files with 3 additions and 3 deletions

View file

@ -59,8 +59,8 @@ Direction PolarAzimuthal::sample() const
double mu = mu_->sample();
if (mu == 1.0) return u_ref_;
// Sample azimuthal angle
double phi = phi_->sample();
// Sample the azimuthal angle with an offset to match azimuth conventions
double phi = phi_->sample() + 0.5*PI;
return rotate_angle(u_ref_, mu, &phi);
}

View file

@ -1,2 +1,2 @@
k-combined:
3.026614E-01 3.952008E-03
2.800827E-01 7.360163E-03