41 lines
1.0 KiB
C++
41 lines
1.0 KiB
C++
/*
|
||
* © Copyright 2014 – Urheberrechtshinweis
|
||
* Alle Rechte vorbehalten / All Rights Reserved
|
||
*
|
||
* Programmcode ist urheberrechtlich geschuetzt.
|
||
* Das Urheberrecht liegt, soweit nicht ausdruecklich anders gekennzeichnet, bei Frank Ebner.
|
||
* Keine Verwendung ohne explizite Genehmigung.
|
||
* (vgl. § 106 ff UrhG / § 97 UrhG)
|
||
*/
|
||
|
||
#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
|