morton64

1.0.1 • Public • Published

Morton Pack/Unpack Library

Basics

Check wikipedia for details.

Example

var Morton64 = require("morton64");
 
var m = new Morton64(2, 32); // 2 dimenstions 32 bits each
var code = m.pack([13, 42]); // pack two values, returns Long
var values = m.unpack(code); // should get back 13 and 42 (as Long)

Readme

Keywords

Package Sidebar

Install

npm i morton64

Weekly Downloads

1

Version

1.0.1

License

BSD-3-Clause

Last publish

Collaborators

  • gojuno