src/linetypes/quadrilateral.cpp

changeset 26
3a9e761e4faa
parent 21
0133e565e072
child 33
4c41bfe2ec6e
--- a/src/linetypes/quadrilateral.cpp	Sun Jan 19 14:25:57 2020 +0200
+++ b/src/linetypes/quadrilateral.cpp	Wed Jan 22 00:23:29 2020 +0200
@@ -78,5 +78,12 @@
 		this->points[2],
 		this->points[3],
 		this->colorIndex,
-		this->id));
+			this->id));
 }
+
+void linetypes::Quadrilateral::invert()
+{
+	//    0 1 2 3
+	// -> 2 1 0 3
+	std::swap(this->points[0], this->points[2]);
+}

mercurial