#ifndef GRIDWALKSTATE_H #define GRIDWALKSTATE_H #include "../../geo/Heading.h" #include "../../geo/Point3.h" template 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