diff -r f7dd937667a5 -r f99d52b1646b src/main.h --- a/src/main.h Fri Feb 28 19:24:33 2020 +0200 +++ b/src/main.h Sat Feb 29 23:43:38 2020 +0200 @@ -87,3 +87,27 @@ { vector.reserve(vector.size() + amount); } + +inline QString vectorToString(const glm::vec2& vec) +{ + return "(%1, %2)"_q + .arg(toDouble(vec.x)) + .arg(toDouble(vec.y)); +} + +inline QString vectorToString(const glm::vec3& vec) +{ + return "(%1, %2, %3)"_q + .arg(toDouble(vec.x)) + .arg(toDouble(vec.y)) + .arg(toDouble(vec.z)); +} + +inline QString vectorToString(const glm::vec4& vec) +{ + return "(%1, %2, %3, %4)"_q + .arg(toDouble(vec.x)) + .arg(toDouble(vec.y)) + .arg(toDouble(vec.z)) + .arg(toDouble(vec.w)); +}