--- 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.