torcs - 1.2.0

Main Page   Modules   Compound List   File List   Compound Members   File Members   Related Pages  

torcs/src/interfaces/ttypes.h File Reference


Detailed Description

Global types used in TORCS.

Author:
Eric Espie
Version:

#include <tgf.h>

Include dependency graph for ttypes.h:

Include dependency graph

Go to the source code of this file.

Compounds

struct  t3Dd
 3D point. More...

struct  tDynPt
 Dynamic point structure. More...

struct  tForces
 Forces and moments. More...

struct  tPosd
 6 DOF position. More...


Defines

#define RADS2RPM(x)   ((x)*9.549296585)
 Radian/s to RPM conversion.

#define RPM2RADS(x)   ((x)*.104719755)
 RPM to Radian/s conversion.

#define RAD2DEG(x)   ((x)*(180.0/PI))
 Radian to degree conversion.

#define DEG2RAD(x)   ((x)*(PI/180.0))
 Degree to radian conversion.

#define FEET2M(x)   ((x)*0.304801)
 Feet to meter conversion.

#define SIGN(x)   ((x) < 0 ? -1.0 : 1.0)
 Sign of the expression.

#define NORM0_2PI(x)
 Angle normalization between 0 and 2 * PI.

#define NORM_PI_PI(x)
 Angle normalization between -PI and PI.

#define DIST(x1, y1, x2, y2)   sqrt(((x1) - (x2)) * ((x1) - (x2)) + ((y1) - (y2)) * ((y1) - (y2)))
 Distance between two points.

#define FRNT_RGT   0
 front right

#define FRNT_LFT   1
 front left

#define REAR_RGT   2
 rear right

#define REAR_LFT   3
 rear left

#define FRNT   0
 front

#define REAR   1
 rear

#define RIGHT   0
 right

#define LEFT   1
 left


Variables

const tdble PI = 3.14159265358979323846
 PI.

const tdble G = 9.80665
 m/s/s


Define Documentation

#define NORM0_2PI  
 

Value:

do {                                            \
        while ((x) > 2*PI) { (x) -= 2*PI; }     \
        while ((x) < 0) { (x) += 2*PI; }        \
} while (0)
Angle normalization between 0 and 2 * PI.

#define NORM_PI_PI  
 

Value:

do {                                            \
        while ((x) > PI) { (x) -= 2*PI; }       \
        while ((x) < -PI) { (x) += 2*PI; }      \
} while (0)
Angle normalization between -PI and PI.


Generated at Fri Apr 4 00:29:55 2003 for torcs by doxygen 1.3-rc1 written by Dimitri van Heesch, © 1997-1999
TORCS © Eric Espié 1999, 2002.