Autopysta
Loading...
Searching...
No Matches
static_trajectory Class Reference

Represents a static trajectory for a fixed object on the road. More...

#include <trajectory.h>

Inheritance diagram for static_trajectory:
generalized_trajectory

Public Member Functions

 static_trajectory (point *pos)
 Constructs a static trajectory with a fixed position.
 
pointcurrent () override
 Returns the current position of the static object.
 
pointoperator[] (int idx) const override
 Retrieves the point by integer index (always returns the static position).
 
pointoperator[] (double idx) const override
 Retrieves the point by floating-point index (always returns the static position).
 
- Public Member Functions inherited from generalized_trajectory

Detailed Description

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).

Constructor & Destructor Documentation

◆ static_trajectory()

static_trajectory::static_trajectory ( point * pos)

Constructs a static trajectory with a fixed position.

Parameters
posThe position of the static object.

Member Function Documentation

◆ current()

point * static_trajectory::current ( )
overridevirtual

Returns the current position of the static object.

Returns
The current position as a point.

Implements generalized_trajectory.

◆ operator[]() [1/2]

point * static_trajectory::operator[] ( double idx) const
overridevirtual

Retrieves the point by floating-point index (always returns the static position).

Parameters
idxUnused index parameter.
Returns
The current position.

Implements generalized_trajectory.

◆ operator[]() [2/2]

point * static_trajectory::operator[] ( int idx) const
overridevirtual

Retrieves the point by integer index (always returns the static position).

Parameters
idxUnused index parameter.
Returns
The current position.

Implements generalized_trajectory.


The documentation for this class was generated from the following file: