From 33fbaf7198781e12a7bfb61c45a795b794933dac Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Sun, 29 Mar 2009 17:13:41 +0200 Subject: style --- src/ProjectionLSQ.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') 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); -- cgit v1.2.3