This is the Beeline Route class where we can use the strategy pattern to implement a Beeline route for carriers. More...
#include <beeline_route.h>

Public Member Functions | |
| std::vector< std::vector< float > > | GetRoute (const IGraph *graph, std::vector< float > location, std::vector< float > dest) |
| This function allows the moving item to get the desired route. In this class, the function will return a route that follows the Beeline path. More... | |
This is the Beeline Route class where we can use the strategy pattern to implement a Beeline route for carriers.
|
virtual |
This function allows the moving item to get the desired route. In this class, the function will return a route that follows the Beeline path.
The route includes a point where the drone needs to go up to by a certain height from where it is at, then another point to the destination location with the same certain height, then another point to the final destination location.
| const | IGraph* graph; we don't need to use this parameter |
| std::vector<float> | location Current drone location |
| std::vector<float> | dest Final location where the drone needs to be |
Implements csci3081::RouteStrategy.
1.8.13