An open API service indexing awesome lists of open source software.

https://github.com/darky/rstar-wasm

R-tree, which compiled to WebAssembly from rstar crate
https://github.com/darky/rstar-wasm

index point r-tree rectangle rtree spatial

Last synced: 11 months ago
JSON representation

R-tree, which compiled to WebAssembly from rstar crate

Awesome Lists containing this project

README

          

# rstar-wasm

R-tree, which compiled to WebAssembly from rstar crate

## Basic usage

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