some fixes [multithreading,..]

needed interface changes [new options]
logger for android
wifi-ap-optimization
new test-cases
This commit is contained in:
2016-09-28 12:19:14 +02:00
parent 91e3367372
commit 4f511d907e
62 changed files with 1418 additions and 175 deletions

View File

@@ -56,12 +56,12 @@ public:
}
/** convert degrees to radians */
static constexpr float degToRad(const float deg) {
static constexpr inline float degToRad(const float deg) {
return deg / 180.0f * M_PI;
}
/** convert radians to degrees */
static float radToDeg(const float rad) {
static constexpr inline float radToDeg(const float rad) {
return rad * 180.0f / M_PI;
}

View File

@@ -105,6 +105,10 @@ struct Point3 {
), 1.0f/norm);
}
std::string asString() const {
return "(" + std::to_string(x) + ", " + std::to_string(y) + ", " + std::to_string(z) + ")";
}
private:
static inline bool eq(const float a, const float b, const float delta) {return std::abs(a-b) <= delta;}