Skip to main content

Morton code pack/unpack library

Project description

Basics

Check wikipedia for details.

Example

import morton

m = morton.Morton(dimensions=2, bits=32)
code = m.pack(13, 42)    # pack two values
values = m.unpack(code)  # should get back 13 and 42

Project details


Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page