pub fn rotate(u: [f64; 3], polar: f64, azimuth: f64) -> [f64; 3]Expand description
Rotate unit vector u by polar angle polar (from u) at azimuth
azimuth about u. The azimuth is measured in a frame built from u and
the coordinate axis least aligned with it; since the azimuth is drawn
uniformly the choice of frame does not matter, it only has to be fixed so
results are reproducible.