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/factory/v2/GridNodeImportance.h
2018-10-25 11:50:12 +02:00

35 lines
862 B
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 GRIDNODEIMPORTANCE_H
#define GRIDNODEIMPORTANCE_H
struct GridNodeImportance {
/** importance-weight for dijkstra calculation */
float navImportance;
/** get the node's nav importance */
float getNavImportance() const {return navImportance;}
/** importance-weight for random walks */
float walkImportance;
/** get the node's random-walk importance */
float getWalkImportance() const {return walkImportance;}
/** ctor */
GridNodeImportance() : navImportance(1.0f) {;}
};
#endif // GRIDNODEIMPORTANCE_H