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();
R-tree, which compiled to WebAssembly from rstar crate
R-tree, which compiled to WebAssembly from rstar crate
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();