src/vertex.cpp

changeset 6
73e448b2943d
parent 5
593a658cba8e
child 8
44679e468ba9
equal deleted inserted replaced
5:593a658cba8e 6:73e448b2943d
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) ^ rotl10(qHash(key.y)) ^ rotl20(qHash(key.z));
215 } 215 }
216
217 QString vertexToStringParens(const Vertex& vertex)
218 {
219 return format("(%1, %2, %3)", vertex.x, vertex.y, vertex.z);
220 }

mercurial