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.3.tar.gz (3.9 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for morton-py-1.3.tar.gz
Algorithm Hash digest
SHA256 d7c079b5248a6c6ba5a8b2be1ea2b1f63f86913f299ca8053c27801433dc4fe9
MD5 b9d844ab13a1978623ffeb2a6a8d784c
BLAKE2b-256 776332cae020fe3c173f28043777e8cee43406a52ba371ca91c1b63dad70b125

See more details on using hashes here.

Supported by

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