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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

morton-py-1.2.tar.gz (3.8 kB view details)

Uploaded Source

File details

Details for the file morton-py-1.2.tar.gz.

File metadata

  • Download URL: morton-py-1.2.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for morton-py-1.2.tar.gz
Algorithm Hash digest
SHA256 d437dcd810bdc81dfe133c62a60e882d457de9f56ffa3a99477995489f4bfcf6
MD5 2294fe373001acb5f780b41ac0e056cd
BLAKE2b-256 b8f65e72ee56c31f1cc455bb2134b8b74b3168e202613c2429b4bc4af05b01ba

See more details on using hashes here.

Provenance

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