src/types/vertex.cpp

changeset 1371
b8df4748d04e
parent 1370
c6d5ba08c62c
child 1390
3eace926af7f
--- 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.
  */

mercurial