geometry changes/fixes/new features

new grid walkers + fixes
new test-cases
worked on step/and turn detection
android offline-data-reader
worked on vap-grouping
This commit is contained in:
2016-09-07 10:16:51 +02:00
parent a203305628
commit d283d9b326
27 changed files with 976 additions and 333 deletions

View File

@@ -3,6 +3,7 @@
#include "Exception.h"
#include <sstream>
#include <cmath>
// for GTEST Testcases
#define FRIEND_TEST(test_case_name, test_name)\
@@ -66,9 +67,12 @@ namespace Assert {
if (std::abs(v1-v2) > delta) {doThrow(err);}
}
template <typename T, typename STR> static inline void isBetween(const T v, const T min, const T max, const STR err) {
std::stringstream ss; ss << "\n[" << min << ":" << max << "] but is " << v << "\n";
if (v < min || v > max) {doThrow(err+ss.str());}
if (v < min || v > max) {
std::stringstream ss; ss << "\n[" << min << ":" << max << "] but is " << v << "\n";
doThrow(err+ss.str());
}
}
}