tpbarron / vehicle_optimization

Vehicle simulator to test algorithms for traffic optimization.
1 stars 0 forks source link

Implement method in VehicleManager to return all vehicles within given distance #3

Closed tpbarron closed 10 years ago

tpbarron commented 10 years ago

This depends on the update to vehicle position in task #2. Perhaps could also have max return param. Function signature could be:

vector<Vehicle> get_nearest(int k, int m); where k is max number to return and m is the max distance. Returns empty list not null. And returns in order of closest to furthest.