more consistent formatting of for/while loops and if statements
This commit is contained in:
@ -260,8 +260,8 @@ inline void ComputeHexOrderAtom::calc_qn_complex(double delx, double dely, doubl
|
||||
|
||||
inline void ComputeHexOrderAtom::calc_qn_trig(double delx, double dely, double &u, double &v) {
|
||||
double ntheta;
|
||||
if(fabs(delx) <= MY_EPSILON) {
|
||||
if(dely > 0.0) ntheta = ndegree * MY_PI / 2.0;
|
||||
if (fabs(delx) <= MY_EPSILON) {
|
||||
if (dely > 0.0) ntheta = ndegree * MY_PI / 2.0;
|
||||
else ntheta = ndegree * 3.0 * MY_PI / 2.0;
|
||||
} else ntheta = ndegree * atan(dely / delx);
|
||||
u = cos(ntheta);
|
||||
|
||||
Reference in New Issue
Block a user