Back to index

supertuxkart  0.5+dfsg1
Defines
constants.hpp File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define MAX_HISTORY   50000 /* number of history events */
#define TIME_DELAY_TILL_FINISH   10.0f /* time after all player karts finish */
#define TIME_MUSIC_DESCRIPTION   10.0f /* duration music description is displayed */
#define KILOMETER   1000.000f
#define HOUR   (60.0f * 60.0f)
#define KILOMETERS_PER_HOUR   (KILOMETER/HOUR)
#define ZIPPER_ANGLE   45.0
#define ZIPPER_TIME   1.0f /* Seconds */
#define ZIPPER_VELOCITY   (100.0f * KILOMETERS_PER_HOUR )
#define TRAFFIC_VELOCITY   ( 20.0f * KILOMETERS_PER_HOUR )
#define M_PI   3.14159265358979323846f /* As in Linux's math.h */
#define NINETY_DEGREE_RAD   (M_PI/2.0f)
#define DEGREE_TO_RAD(x)   ((x)*M_PI/180.0f)
#define RAD_TO_DEGREE(x)   ((x)*180.0f/M_PI)

Define Documentation

#define DEGREE_TO_RAD (   x)    ((x)*M_PI/180.0f)

Definition at line 61 of file constants.hpp.

#define HOUR   (60.0f * 60.0f)

Definition at line 34 of file constants.hpp.

#define KILOMETER   1000.000f

Definition at line 33 of file constants.hpp.

Definition at line 42 of file constants.hpp.

#define M_PI   3.14159265358979323846f /* As in Linux's math.h */

Definition at line 57 of file constants.hpp.

#define MAX_HISTORY   50000 /* number of history events */

Definition at line 24 of file constants.hpp.

#define NINETY_DEGREE_RAD   (M_PI/2.0f)

Definition at line 60 of file constants.hpp.

#define RAD_TO_DEGREE (   x)    ((x)*180.0f/M_PI)

Definition at line 62 of file constants.hpp.

#define TIME_DELAY_TILL_FINISH   10.0f /* time after all player karts finish */

Definition at line 25 of file constants.hpp.

#define TIME_MUSIC_DESCRIPTION   10.0f /* duration music description is displayed */

Definition at line 26 of file constants.hpp.

#define TRAFFIC_VELOCITY   ( 20.0f * KILOMETERS_PER_HOUR )

Definition at line 52 of file constants.hpp.

#define ZIPPER_ANGLE   45.0

Definition at line 46 of file constants.hpp.

#define ZIPPER_TIME   1.0f /* Seconds */

Definition at line 47 of file constants.hpp.

#define ZIPPER_VELOCITY   (100.0f * KILOMETERS_PER_HOUR )

Definition at line 48 of file constants.hpp.