|
Autopysta
|
Represents a static trajectory for a fixed object on the road. More...
#include <trajectory.h>
Public Member Functions | |
| static_trajectory (point *pos) | |
| Constructs a static trajectory with a fixed position. | |
| point * | current () override |
| Returns the current position of the static object. | |
| point * | operator[] (int idx) const override |
| Retrieves the point by integer index (always returns the static position). | |
| point * | operator[] (double idx) const override |
| Retrieves the point by floating-point index (always returns the static position). | |
Public Member Functions inherited from generalized_trajectory | |
Represents a static trajectory for a fixed object on the road.
This class handles the trajectory of static objects (such as a fixed vehicle or roadblock).
| static_trajectory::static_trajectory | ( | point * | pos | ) |
Constructs a static trajectory with a fixed position.
| pos | The position of the static object. |
|
overridevirtual |
Returns the current position of the static object.
Implements generalized_trajectory.
|
overridevirtual |
Retrieves the point by floating-point index (always returns the static position).
| idx | Unused index parameter. |
Implements generalized_trajectory.
|
overridevirtual |
Retrieves the point by integer index (always returns the static position).
| idx | Unused index parameter. |
Implements generalized_trajectory.