added new data-structures

added new test-cases
added flexible dijkstra calculation
added debugging log
modified: plotting, grid-generation, grid-importance,
refactoring
This commit is contained in:
2016-01-22 18:47:06 +01:00
parent 12084fe147
commit cdf97322f8
21 changed files with 720 additions and 141 deletions

View File

@@ -2,6 +2,7 @@
#define GRIDPOINT_H
#include <cmath>
#include "../geo/Point3.h"
struct GridPoint {
@@ -35,6 +36,12 @@ struct GridPoint {
return std::sqrt(dx*dx + dy*dy + dz*dz) / 100.0f;
}
/** cast to Point3 */
operator Point3() const {return Point3(x_cm, y_cm, z_cm);}
/** cast to string */
operator std::string() const {return "(" + std::to_string(x_cm) + "," + std::to_string(y_cm) + "," + std::to_string(z_cm) + ")";}
};