1
0
forked from mirrors/0ad

RADTODEG macro added.

This was SVN commit r98.
This commit is contained in:
notpete
2003-11-25 18:36:17 +00:00
parent 3e3fb5bc70
commit a60cafe1d4
+4 -3
View File
@@ -1,6 +1,6 @@
//*********************************************************** //***********************************************************
// //
// Name: MathUtil.h // Name: MathUtil.H
// Last Update: 28/1/02 // Last Update: 28/1/02
// Author: Poya Manouchehri // Author: Poya Manouchehri
// //
@@ -14,7 +14,8 @@
#define PI 3.14159265358979323846f #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 SQR(x) ((x) * (x))
#define MAX(a,b) ((a < b) ? (b) : (a)) #define MAX(a,b) ((a < b) ? (b) : (a))
#define MIN(a,b) ((a < b) ? (a) : (b)) #define MIN(a,b) ((a < b) ? (a) : (b))
@@ -23,4 +24,4 @@
//extern unsigned int F2DW (float f); //extern unsigned int F2DW (float f);
#endif #endif