Skip to content

Negative coordinates #70

@normen662

Description

@normen662

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions