209 return in >> vertex.x >> vertex.y >> vertex.z; |
209 return in >> vertex.x >> vertex.y >> vertex.z; |
210 } |
210 } |
211 |
211 |
212 unsigned int qHash(const Vertex& key) |
212 unsigned int qHash(const Vertex& key) |
213 { |
213 { |
214 return qHash(key.x) ^ rotl10(qHash(key.y)) ^ rotl20(qHash(key.z)); |
214 return qHash(key.x) ^ utility::rotl10(qHash(key.y)) ^ utility::rotl20(qHash(key.z)); |
215 } |
215 } |
216 |
216 |
217 QString vertexToStringParens(const Vertex& vertex) |
217 QString vertexToStringParens(const Vertex& vertex) |
218 { |
218 { |
219 return format("(%1, %2, %3)", vertex.x, vertex.y, vertex.z); |
219 return utility::format("(%1, %2, %3)", vertex.x, vertex.y, vertex.z); |
220 } |
220 } |