-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Labels
Description
Hi David,
I think the acceptable ranges for coordinates are 0..2^bits
(for point to Hilbert value conversions). Unfortunately, I have to deal with full java longs -2^63 ... 2^63-1
. I was thinking of preprocessing these numbers (by shifting them into the positive (adding 2^63
to each) and then doing the conversion to a Hilbert value in code specifically adopted to use BigInteger
to also support higher numbers of bits (64 in my cases) at the expense of worse performance). Short question: Do you see an easier/better way to do this? Ideally I would still like to call methods in this library.
(Note that I kind of can do this in a better way for 2 dimensions; however, it eludes me how to generalize that to n dimensions).