added several grid-walks
added new helper methods/classes (e.g. for heading) new test cases optimize the dijkstra cleanups/refactoring added timed-benchmarks to the log many more...
This commit is contained in:
17
grid/walk/GridWalkHelper.h
Normal file
17
grid/walk/GridWalkHelper.h
Normal file
@@ -0,0 +1,17 @@
|
||||
#ifndef GRIDWALKHELPER_H
|
||||
#define GRIDWALKHELPER_H
|
||||
|
||||
#include "../../geo/Heading.h"
|
||||
|
||||
class GridWalkHelper {
|
||||
|
||||
public:
|
||||
|
||||
/** get the heading-change between the two given locations */
|
||||
template <typename T> static Heading getHeading(const T& from, const T& to) {
|
||||
return Heading(from.x_cm, from.y_cm, to.x_cm, to.y_cm);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
#endif // GRIDWALKHELPER_H
|
||||
Reference in New Issue
Block a user