src/basics.h

changeset 1064
4c7a353cf583
parent 1063
1f15c52c11f6
child 1065
c8ecddbd99e9
--- a/src/basics.h	Sat Jan 28 14:01:19 2017 +0200
+++ b/src/basics.h	Sat Jan 28 14:13:01 2017 +0200
@@ -92,6 +92,11 @@
 Q_DECLARE_METATYPE (Vertex)
 uint qHash(const Vertex& key);
 
+static inline qreal abs(const QVector3D &vector)
+{
+	return vector.length();
+}
+
 //
 // Defines a bounding box that encompasses a given set of objects.
 // vertex0 is the minimum vertex, vertex1 is the maximum vertex.

mercurial