Frequent hash collisions when hashing 3d coordinates

前端 未结 0 902
旧时难觅i
旧时难觅i 2020-12-16 03:48

I\'m trying to hash a 3d coordinate to make a unique ID for an index to a map

my approach is currently

return hash(x + hash(y + hash(z)));
相关标签:
回答
  • 消灭零回复
提交回复
热议问题