8000 GitHub - demarius/xy: N-dimensional Hilbert curves.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

demarius/xy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Xy

N-dimensional Hilbert curve mapping in JS.

Documentation:  http://bigeasy.github.io/xy
Source:         http://github.io/bigeasy/xy
Issues:         http://github.com/bigeasy/xy/issues

Install:        `npm install xy`

License:        MIT

Usage:

Get the Hilbert index of an N-dimensional point.

var xy = require('xy')

xy.hilbert([15,0]) // <-- "255"
xy.hilbert([1,1,0,1]) // <-- "9"

Convert a Hilbert index back to an N-dimensional point.

xy.hilbertInverse(2,0) // <-- "[0,0]"
xy.hilbertInverse(3,63) // <-- "[3,0,0]"

About

N-dimensional Hilbert curves.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 62.3%
  • HTML 31.9%
  • Shell 5.8%
0