diff -r 6ca6e8c647d4 -r 128efb9d148b src/geometry.h --- a/src/geometry.h Mon Jul 19 23:41:52 2021 +0300 +++ b/src/geometry.h Tue Jul 20 01:22:01 2021 +0300 @@ -102,4 +102,11 @@ { std::vector points; }; + + inline bool isclose(const glm::vec3& a, const glm::vec3& b) + { + return qFuzzyCompare(a.x, b.x) + and qFuzzyCompare(a.y, b.y) + and qFuzzyCompare(a.z, b.z); + } }