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
- Host: GitHub
- URL: https://github.com/darky/rstar-wasm
- Owner: darky
- Created: 2019-10-17T19:26:36.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-06-27T08:26:58.000Z (over 1 year ago)
- Last Synced: 2025-04-25T21:52:20.378Z (11 months ago)
- Topics: index, point, r-tree, rectangle, rtree, spatial
- Language: TypeScript
- Homepage:
- Size: 515 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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();
```