src/basics.h

changeset 1064
4c7a353cf583
parent 1063
1f15c52c11f6
child 1065
c8ecddbd99e9
equal deleted inserted replaced
1063:1f15c52c11f6 1064:4c7a353cf583
90 } 90 }
91 91
92 Q_DECLARE_METATYPE (Vertex) 92 Q_DECLARE_METATYPE (Vertex)
93 uint qHash(const Vertex& key); 93 uint qHash(const Vertex& key);
94 94
95 static inline qreal abs(const QVector3D &vector)
96 {
97 return vector.length();
98 }
99
95 // 100 //
96 // Defines a bounding box that encompasses a given set of objects. 101 // Defines a bounding box that encompasses a given set of objects.
97 // vertex0 is the minimum vertex, vertex1 is the maximum vertex. 102 // vertex0 is the minimum vertex, vertex1 is the maximum vertex.
98 // 103 //
99 class BoundingBox 104 class BoundingBox

mercurial