diff options
Diffstat (limited to 'generic/OverlapMan.c')
-rw-r--r-- | generic/OverlapMan.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/generic/OverlapMan.c b/generic/OverlapMan.c index cb7eddc..37ca040 100644 --- a/generic/OverlapMan.c +++ b/generic/OverlapMan.c @@ -40,7 +40,6 @@ static const char compile_id[]="$Compile: " __FILE__ " " __DATE__ " " __TIME__ " #include "OverlapMan.h" -#include "Geo.h" #include <stdio.h> #include <string.h> @@ -52,6 +51,12 @@ static const char compile_id[]="$Compile: " __FILE__ " " __DATE__ " " __TIME__ " #define signe(a) ((a) < (0) ? (-1) : (1)) #define abs(a) ((a) < (0) ? -(a) : (a)) +#define DegreesToRadian(angle) \ + (M_PI * (double) (angle) / 180.0) +#define RadianToDegrees(angle) \ + (fmod((angle) * 180.0 / M_PI, 360.0)) +#define RadianToDegrees360(angle) \ + (fmod(RadianToDegrees(angle)+360.0,360.0)) #define NB_ALLOC 20 |