From 83aac18c1f8979fc9577fe23ad1522a3a6643940 Mon Sep 17 00:00:00 2001 From: Roní Gonçalves Date: Sun, 7 May 2017 18:13:30 -0300 Subject: Added DegreesAndRadians.h and included conditional compilation in some files in order to allow compiling this project using wxWidgets-3.0.x --- Project/DegreesAndRadians.h | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Project/DegreesAndRadians.h (limited to 'Project/DegreesAndRadians.h') 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 + +// 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 -- cgit