Back to index

extremetuxracer  0.5beta
Defines
defs.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define M_PI   3.1415926535
#define MIN(x, y)   ((x)<(y)?(x):(y))
#define MAX(x, y)   ((x)>(y)?(x):(y))
#define EPS   1e-13
#define ROUND_TO_NEAREST(x)   ( (int) ((x)+0.5) )
#define ANGLES_TO_RADIANS(x)   ( M_PI / 180.0 * (x) )
#define RADIANS_TO_ANGLES(x)   ( 180.0 / M_PI * (x) )

Define Documentation

#define ANGLES_TO_RADIANS (   x)    ( M_PI / 180.0 * (x) )

Definition at line 33 of file defs.h.

#define EPS   1e-13

Definition at line 29 of file defs.h.

#define M_PI   3.1415926535

Definition at line 23 of file defs.h.

#define MAX (   x,
 
)    ((x)>(y)?(x):(y))

Definition at line 27 of file defs.h.

#define MIN (   x,
 
)    ((x)<(y)?(x):(y))

Definition at line 26 of file defs.h.

#define RADIANS_TO_ANGLES (   x)    ( 180.0 / M_PI * (x) )

Definition at line 34 of file defs.h.

#define ROUND_TO_NEAREST (   x)    ( (int) ((x)+0.5) )

Definition at line 31 of file defs.h.