RTree 1.1.0

Install-Package RTree -Version 1.1.0
dotnet add package RTree --version 1.1.0
<PackageReference Include="RTree" Version="1.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add RTree --version 1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: RTree, 1.1.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install RTree as a Cake Addin
#addin nuget:?package=RTree&version=1.1.0

// Install RTree as a Cake Tool
#tool nuget:?package=RTree&version=1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Basic usage:

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

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);

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

  • .NETStandard 2.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on RTree:

Package Downloads
Quest.CoreLib

Quest core library

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.1.0 26,386 3/7/2018
1.0.2.1 7,491 2/9/2013