rstar-wasm
TypeScript icon, indicating that this package has built-in type declarations

0.1.4 • Public • Published

rstar-wasm

R-tree, which compiled to WebAssembly from rstar crate

Basic usage

import {RTree} from 'rstar-wasm';
 
const tree = new RTree();
 
tree.insert([1, 1]);
tree.insert([2, 2]);
 
tree.nearest([2.2, 2.2]); // [2, 2]
 
tree.destroy();

Package Sidebar

Install

npm i rstar-wasm

Weekly Downloads

5

Version

0.1.4

License

MIT

Unpacked Size

85.8 kB

Total Files

7

Last publish

Collaborators

  • darrrk