diff options
| author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2008-05-21 19:47:10 +0200 | 
|---|---|---|
| committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2008-05-21 19:47:10 +0200 | 
| commit | 7669bc038012eb92bd8d3ae842b236cd406ed074 (patch) | |
| tree | 521171ab1caf41e8b08d809bd3ede64afc64b180 /src/ProjectionLSQ.cxx | |
| parent | d9c027bb9b4bfb74c41c334fc8cf889d4e244b55 (diff) | |
rotate in cartesian coordinates
Diffstat (limited to 'src/ProjectionLSQ.cxx')
| -rw-r--r-- | src/ProjectionLSQ.cxx | 10 | 
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ProjectionLSQ.cxx b/src/ProjectionLSQ.cxx index cdf9f04..461f36e 100644 --- a/src/ProjectionLSQ.cxx +++ b/src/ProjectionLSQ.cxx @@ -17,7 +17,7 @@  #include "ProjectionLSQ.H" -static double pi_d = asin(1.0) * 2.0; +double ProjectionLSQ::pi = asin(1.0) * 2.0;  ProjectionLSQ::ProjectionLSQ() {  } @@ -238,10 +238,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_d) { -		alph -= 2.0 * pi_d; -	} else if (alph - parms->a_center < -pi_d) { -		alph += 2.0 * pi_d; +	if (alph - parms->a_center > pi) { +		alph -= 2.0 * 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,  | 
