Commit 72aadd98 authored by Quentin Khan's avatar Quentin Khan

Fix rotate bug in fuseDistributions

parent 61b27cdf
......@@ -205,7 +205,7 @@ void rotate(Particle& p, const distribution& dist) {
}
// Rotate around z axis
if(dist.rot[2] > 1e-5 || dist.rot[2] < -1e-5) {
FReal alpha = dist.rot[1];
FReal alpha = dist.rot[2];
p.pos[0] = p.pos[0] * cos(alpha) - p.pos[1] * sin(alpha);
p.pos[1] = p.pos[0] * sin(alpha) + p.pos[1] * cos(alpha);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment