forked from mirrors/0ad
RADTODEG macro added.
This was SVN commit r98.
This commit is contained in:
@@ -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
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user