--- a/src/types/vertex.cpp Mon Apr 02 10:59:38 2018 +0300 +++ b/src/types/vertex.cpp Mon Apr 02 13:21:15 2018 +0300 @@ -200,6 +200,14 @@ } /* + * Returns a vertex with all coordinates inverted. + */ +Vertex operator-(const Vertex& vertex) +{ + return {-vertex.x, -vertex.y, -vertex.z}; +} + +/* * Inserts this vertex into a data stream. This is needed for vertices to be * stored in QSettings. */