New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

hilbert-2d

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hilbert-2d

2D Hilbert curve coordinate encoder/decoder

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

Hilbert-2D npm version CircleCI

2D Hilbert curve coordinate encoder/decoder

Hilbert-gif;

The code is ported from Go to JS from https://github.com/google/hilbert/ Inlined rotations to eliminate function calls.

Install

npm install -S hilbert-2d

API

const h = require('hilbert-2d');

h.encode(16, [12, 23]); // 837
h.decode(16, 837);      // [12, 23]

TODO

  • Add range queries and sorting
  • Add examples

Keywords

hilbert

FAQs

Package last updated on 13 Sep 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts