Skip to content

Latest commit

 

History

History
18 lines (11 loc) · 262 Bytes

README.md

File metadata and controls

18 lines (11 loc) · 262 Bytes

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();