src/geometry.h

changeset 168
24590af32ad6
parent 123
e3fe3617b631
child 187
30204975694a
--- a/src/geometry.h	Sat Mar 05 15:40:43 2022 +0200
+++ b/src/geometry.h	Sat Mar 05 16:57:28 2022 +0200
@@ -1,4 +1,5 @@
 #pragma once
+#include <QPolygonF>
 #include "basics.h"
 
 namespace geom
@@ -94,6 +95,7 @@
 	LineSegment2D left(const QRectF& rectangle);
 	LineSegment2D right(const QRectF& rectangle);
 	bool isConvex(const std::vector<glm::vec3>& polygon);
+	Winding winding(const QPolygonF& polygon);
 	struct ScalingExtract
 	{
 		glm::vec3 scaling;

mercurial