src/vertex.cpp

changeset 8
44679e468ba9
parent 6
73e448b2943d
child 18
918b6c0f8b5b
equal deleted inserted replaced
7:68443f5be176 8:44679e468ba9
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 }

mercurial