Skip to content

gojuno/go.morton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Morton Pack/Unpack Library GoDoc Build Status

Basics

Check [[https://en.wikipedia.org/wiki/Z-order_curve][wikipedia]] for details.

Example

import "github.com/gojuno/go.morton"

m := morton.Make64(2, 32) // 2 dimenstions 32 bits each
code := m.Pack(13, 42)    // pack two values
values := m.Unpack(code)  // should get back 13 and 42

Releases

No releases published

Packages

No packages published

Languages