Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hash val conflict for 3D coordinate #7

Open
DeepDuke opened this issue Aug 9, 2023 · 1 comment
Open

hash val conflict for 3D coordinate #7

DeepDuke opened this issue Aug 9, 2023 · 1 comment

Comments

@DeepDuke
Copy link

DeepDuke commented Aug 9, 2023

Hi, thanks for this great project. It seems the hash value may conflict for larger numbers as can be seen in the following screenshot

image

@minaguib
Copy link

I ran into this as well with this library in the 2-dimensional space. All of these return the same position:

>>> import pymorton as pm
>>> pm.interleave2(18580409, 175926)
3366932329
>>> pm.interleave2(18645945, 175926)
3366932329
>>> pm.interleave2(18777017, 175926)
3366932329
>>> pm.interleave2(18842553, 175926)
3366932329
>>> pm.interleave2(18908089, 175926)
3366932329

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants