26#include <robottools.h>
91 return h0 * p0 + h1 * p1 + h2 * t0 + h3 * t1;
float tdble
Floating point type used in TORCS.
struct trackSeg tTrackSeg
Track segment (tTrackSeg) The segments can be straights (type TR_STR): (the track goes from the right...
Location on the track in local coordinates.
void TrackSurfaceNormal(tTrkLocPos *p, t3Dd *norm)
void TrackGlobal2Local(tTrackSeg *segment, tdble X, tdble Y, tTrkLocPos *p, int type)
tdble TrackSpline(tdble p0, tdble p1, tdble t0, tdble t1, tdble t)
void TrackLocal2Global(tTrkLocPos *p, tdble *X, tdble *Y)
void TrackSideNormal(tTrackSeg *seg, tdble x, tdble y, int side, t3Dd *norm)
tdble TrackHeightL(tTrkLocPos *p)
tdble TrackHeightG(tTrackSeg *seg, tdble x, tdble y)