Skip to content

drorgl/cspatialindexrt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C# Porting from https://sourceforge.net/projects/jsi/

Basic usage

Create a new instance: RTree.RTree tree = new RTree.RTree();

Create a rectangle: RTree.Rectangle rect = new RTree.Rectangle(1, 2, 3, 4, 5, 6);

Add a new rectangle to the RTree: tree.Add(rect, object);

Check which objects are inside the rectangle: var objects = tree.Contains(rect);

Count how many items in the RTree: var i = tree.Count;

Check which objects intersect with the rectangle: var objects = tree.Intersects(rect);

Create a point: RTree.Point point = new RTree.Point(1, 2, 3);

Get a list of rectangles close to the point with maximum distance: var objects = tree.Nearest(point, 10);

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages