Skip to content

Commit

Permalink
close issue #5, fix CPP algorithm
Browse files Browse the repository at this point in the history
  • Loading branch information
madwyn committed Nov 30, 2015
1 parent 505b3c1 commit ed286cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Cube2Cyl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ inline void Cube2Cyl::calCubeFace(const double& theta, const double& phi) {
}

// find out which segment the line strikes to
phiThreshold = atan2(S_RADIUS / cos(normTheta), S_RADIUS);
phiThreshold = atan2(S_RADIUS, S_RADIUS / cos(normTheta));

// in the top segment
if (phi > phiThreshold) {
Expand Down

0 comments on commit ed286cf

Please sign in to comment.