src/basics.h

changeset 1177
8661b9237ed5
parent 1162
94e12806d741
child 1178
3a88e7a60b63
--- a/src/basics.h	Thu Mar 02 14:45:34 2017 +0200
+++ b/src/basics.h	Fri Mar 03 00:35:43 2017 +0200
@@ -25,12 +25,14 @@
 #include <QVector3D>
 #include <QVector>
 #include <QFile>
+#include <QMatrix4x4>
 #include <functional>
 #include <math.h>
 #include "macros.h"
 #include "transform.h"
 
 class Matrix;
+using GLRotationMatrix = QMatrix4x4;
 
 template<typename T, typename R>
 using Pair = std::pair<T, R>;
@@ -59,6 +61,7 @@
 	void	apply (ApplyConstFunction func) const;
 	QString	toString (bool mangled = false) const;
 	void	transform (const Matrix& matr, const Vertex& pos);
+	Vertex	transformed(const GLRotationMatrix& matrix) const;
 	void	setCoordinate (Axis ax, qreal value);
 
 	Vertex&	operator+= (const Vertex& other);

mercurial