Scribus
Open source desktop publishing at your fingertips
angle.h
Go to the documentation of this file.
1 
35 #ifndef LIB2GEOM_SEEN_ANGLE_H
36 #define LIB2GEOM_SEEN_ANGLE_H
37 
38 namespace Geom {
39 
40 #ifndef M_PI
41 # define M_PI 3.14159265358979323846
42 #endif
43 #ifndef M_PI_2
44 # define M_PI_2 ( M_PI / 2)
45 #endif
46 
47 inline double deg_to_rad(double deg) { return deg*M_PI/180.0;}
48 
49 inline double rad_to_deg(double rad) { return rad*180.0/M_PI;}
50 
51 }
52 
53 #endif
Definition: angle.h:38