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
2018-10-25 11:50:12 +02:00

41 lines
1.0 KiB
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
* © 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