This repository has been archived on 2020-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
Files
Indoor/grid/walk/GridWalkState.h
FrankE 2e2c1a3004 new test cases
worked on all walkers
new helper methods
new distributions
some bugfixes
2016-02-02 21:43:15 +01:00

31 lines
730 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;
/** cumulative heading change */
float headingChange_rad;
/** cumulative distance change */
float distanceWalked_m;
/** empty ctor */
GridWalkState() : node(nullptr), heading(0), headingChange_rad(0), distanceWalked_m(0) {;}
Point3 avg = Point3(0,0,0);
/** ctor with user-node and heading */
GridWalkState(const T* node, const Heading heading) : node(node), heading(heading), headingChange_rad(0), distanceWalked_m(0) {;}
};
#endif // GRIDWALKSTATE_H