diff --git a/source/terrain/MathUtil.h b/source/terrain/MathUtil.h index c5f168cb19..62224344c5 100755 --- a/source/terrain/MathUtil.h +++ b/source/terrain/MathUtil.h @@ -1,6 +1,6 @@ //*********************************************************** // -// Name: MathUtil.h +// Name: MathUtil.H // Last Update: 28/1/02 // Author: Poya Manouchehri // @@ -14,7 +14,8 @@ #define PI 3.14159265358979323846f -#define DEGTORAD(a) (((a) * PI) / 180.0f) +#define DEGTORAD(a) ((a) * (PI/180.0f)) +#define RADTODEG(a) ((a) * (180.0f/PI)) #define SQR(x) ((x) * (x)) #define MAX(a,b) ((a < b) ? (b) : (a)) #define MIN(a,b) ((a < b) ? (a) : (b)) @@ -23,4 +24,4 @@ //extern unsigned int F2DW (float f); -#endif \ No newline at end of file +#endif