Registry / other / rstar
library0.13.0rscratesunverified

An R*-tree spatial index for efficient nearest neighbor and range queries.

# Cargo.toml [dependencies] rstar = "0.13.0"
INSTALL
IMPORT
SIG · RSTAR
R
rstar
otherrustv0.13.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

RTree
✓ use rstar::RTree;

Inserts points into an RTree and finds the nearest neighbor.

use rstar::RTree; use rstar::primitives::Point2D; fn main() { let mut tree = RTree::new(); tree.insert(Point2D::new(0.0, 0.0)); tree.insert(Point2D::new(1.0, 1.0)); let nearest = tree.nearest_neighbor(&Point2D::new(0.5, 0.5)); println!("Nearest: {:?}", nearest); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.13.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
rstar — cargo add rstar · libregistry