Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gdenisc/rust-quadtree
QuadTree made in Rust with no dependencies and NodeJS support
https://github.com/gdenisc/rust-quadtree
javascript js nodejs quadtree ts typescript wasm
Last synced: 1 day ago
JSON representation
QuadTree made in Rust with no dependencies and NodeJS support
- Host: GitHub
- URL: https://github.com/gdenisc/rust-quadtree
- Owner: GDenisC
- License: mit
- Created: 2023-12-17T06:19:52.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-24T12:01:16.000Z (12 months ago)
- Last Synced: 2024-02-24T13:22:44.819Z (12 months ago)
- Topics: javascript, js, nodejs, quadtree, ts, typescript, wasm
- Language: JavaScript
- Homepage: https://github.com/GDenisC/rust-quadtree
- Size: 45.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# QuadTree
QuadTree made in Rust with no dependencies and NodeJS support
# Installation
1. Download the latest release from [GitHub](https://github.com/GDenisC/rust-quadtree).
2. Add this to your `node_modules` directory and name it `rust-quadtree`.# Usage
```js
import { QuadTree, Point, Rect } from 'rust-quadtree';const tree = new QuadTree([1000, 1000]);
tree.insert(new Point(50, 50));
const result = tree.query(new Rect(25, 25, 75, 75));
console.log(result);
```