Moved utilities for angles in trigo.h

New conversion routines and sin/cos implementation for angles in decidegrees
This commit is contained in:
Lorenzo Marcantonio
2013-05-02 20:06:58 +02:00
parent ad21bfda4d
commit a70965eb6d
47 changed files with 187 additions and 155 deletions
+2 -2
View File
@@ -361,12 +361,12 @@ void SVG_PLOTTER::Arc( const wxPoint& centre, int StAngle, int EndAngle, int rad
start += centre_dev;
end += centre_dev;
double theta1 = StAngle * M_PI / 1800.0;
double theta1 = DECIDEG2RAD( StAngle );
if( theta1 < 0 )
theta1 = theta1 + M_PI * 2;
double theta2 = EndAngle * M_PI / 1800.0;
double theta2 = DECIDEG2RAD( EndAngle );
if( theta2 < 0 )
theta2 = theta2 + M_PI * 2;