24 #ifndef __STRAIGHTLINE_H
25 #define __STRAIGHTLINE_H
93 virtual void create(dSpaceID space);
double heightWall
Definition: straightline.h:106
Matrix type.
Definition: matrix.h:65
Abstract class (interface) for obstacles.
Definition: abstracttracksection.h:37
StraightLine(const Position &p, const double &angle)
Constructor.
Definition: straightline.cpp:40
double length
Definition: straightline.h:99
dGeomID wallRight
Definition: straightline.h:104
void setCurveAngle(double alpha)
virtual double getLength()
returns the length of the segment, here it is the length of the arc formula is: radius * angle; ...
Definition: straightline.cpp:109
dGeomID wallLeft
Definition: straightline.h:103
virtual void destroy()
Definition: straightline.cpp:176
double angle
Definition: straightline.h:108
virtual void create(dSpaceID space)
Definition: straightline.cpp:148
virtual bool isInside(const Position &p)
returns true if the real coordinates lay inside of the segment
Definition: straightline.cpp:66
virtual double getWidth()
returns the width of the segment,
Definition: straightline.cpp:116
Definition: position.h:30
void setProperties()
Definition: straightline.cpp:28
double width
Definition: straightline.h:102
virtual void draw()
draws the obstacle (4 boxes for the playground)
Definition: straightline.cpp:134
Abstract class (interface) for obstacles.
Definition: straightline.h:32
double widthWall
Definition: straightline.h:105
virtual ~StraightLine()
Definition: straightline.h:46
bool obstacle_exists
Definition: straightline.h:112
Color color
obstacle color
Definition: straightline.h:117
double isLeft
Definition: straightline.h:110
virtual void setWidth(double w)
sets the width of the segment,
Definition: straightline.cpp:123
virtual Matrix getTransformedEndMatrix()
gives the position and rotation(angle) of the segment at the end of the segment so that a new segment...
Definition: straightline.cpp:58
virtual double getSectionIdValue(const Position &p)
returns a value between 0 and length that tells at which section you are on the segment.
Definition: straightline.cpp:80
virtual double getWidthIdValue(const Position &p)
returns a value between 0 and width that tells at which width you are on the segment, more to right or more to the left.
Definition: straightline.cpp:95