deleting from the grid is now bleaching fast added new helper methods many new test-cases many new methods for geo classes and others added a bunch of new grid-walkers
25 lines
522 B
C++
25 lines
522 B
C++
#ifndef GRIDWALKSTATE_H
|
|
#define GRIDWALKSTATE_H
|
|
|
|
#include "../../geo/Heading.h"
|
|
#include "../../geo/Point3.h"
|
|
|
|
template <typename T> struct GridWalkState {
|
|
|
|
/** the user-node this state resides at */
|
|
const T* node;
|
|
|
|
/** the current heading */
|
|
Heading heading;
|
|
|
|
/** empty ctor */
|
|
GridWalkState() : node(nullptr), heading(0) {;}
|
|
|
|
Point3 avg = Point3(0,0,0);
|
|
|
|
/** ctor with user-node and heading */
|
|
GridWalkState(const T* node, const Heading heading) : node(node), heading(heading) {;}
|
|
|
|
};
|
|
#endif // GRIDWALKSTATE_H
|