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 |