diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2009-03-29 17:13:41 +0200 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2009-03-29 17:13:41 +0200 |
commit | 33fbaf7198781e12a7bfb61c45a795b794933dac (patch) | |
tree | e15d7671a472d50cf3a34c6f13cd18824207b034 | |
parent | 0b787cb933393fb86f942769d91bbbb8b921b064 (diff) |
style
-rw-r--r-- | src/ProjectionLSQ.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ProjectionLSQ.cxx b/src/ProjectionLSQ.cxx index d486fe2..6685f0f 100644 --- a/src/ProjectionLSQ.cxx +++ b/src/ProjectionLSQ.cxx @@ -245,11 +245,10 @@ ProjectionLSQ::get_coordinates(double alph, double a_nick, const ViewParams *parms, double *x, double *y) { // Normalize alph - parms->a_center to [-pi/2, pi/2] - if (alph - parms->a_center > pi) { + if (alph - parms->a_center > pi) alph -= 2.0 * pi; - } else if (alph - parms->a_center < -pi) { + else if (alph - parms->a_center < -pi) alph += 2.0 * pi; - } *x = mac_x(parms->a_center, parms->a_nick, parms->a_tilt, parms->scale, parms->k0, parms->k1, parms->x0, alph, a_nick); |