diff options
author | Roní Gonçalves <ronignc@gmail.com> | 2017-05-07 18:13:30 -0300 |
---|---|---|
committer | Roní Gonçalves <ronignc@gmail.com> | 2017-05-07 18:13:30 -0300 |
commit | 83aac18c1f8979fc9577fe23ad1522a3a6643940 (patch) | |
tree | d6fc2b0074a9879e01e776f04fe848bb4ae78f98 /Project/DegreesAndRadians.h | |
parent | 7ade1da522d642fa5f7a38e62d0e865733ef1afe (diff) | |
download | PSP.git-83aac18c1f8979fc9577fe23ad1522a3a6643940.tar.gz PSP.git-83aac18c1f8979fc9577fe23ad1522a3a6643940.tar.xz PSP.git-83aac18c1f8979fc9577fe23ad1522a3a6643940.zip |
Added DegreesAndRadians.h and included conditional compilation in some files in order to allow compiling this project using wxWidgets-3.0.x
Diffstat (limited to 'Project/DegreesAndRadians.h')
-rw-r--r-- | Project/DegreesAndRadians.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Project/DegreesAndRadians.h b/Project/DegreesAndRadians.h new file mode 100644 index 0000000..a936ed7 --- /dev/null +++ b/Project/DegreesAndRadians.h @@ -0,0 +1,10 @@ +#ifndef DEGREESANDRADIANS_H +#define DEGREESANDRADIANS_H + +#include<wx/math.h> + +// Convert between degrees and radians. +inline double wxDegToRad(double deg) { return (deg * M_PI) / 180.0; } +inline double wxRadToDeg(double rad) { return (rad * 180.0) / M_PI; } + +#endif // DEGREESANDRADIANS_H |