KDBush 1.0.11
dotnet add package KDBush --version 1.0.11
NuGet\Install-Package KDBush -Version 1.0.11
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="KDBush" Version="1.0.11" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add KDBush --version 1.0.11
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: KDBush, 1.0.11"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install KDBush as a Cake Addin #addin nuget:?package=KDBush&version=1.0.11 // Install KDBush as a Cake Tool #tool nuget:?package=KDBush&version=1.0.11
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
kdbush
C# KD-Bush implementation
Based on this JavaScript implementation by Vladimir Agafonkin
KD-Bush is a very fast static spatial index for 2D points based on a flat KD-tree.
Compared to RBush:
- points only — no rectangles
- static — you can't add/remove items
- indexing is 5-8 times faster
Usage
using KDBush
KDBush<int> kdbush = new KDBush<int>();
List<Point<int>> points = new List<Point<int>>(){
new Point<int>(54, 1, 0),
new Point<int>(97, 21, 1)
};
kdbush.Index(points);
// Get all points that lie inside the rectangle
// (20, 30)-(50, 70)
var result = kdbush.Query(20, 30, 50, 70);
// Get all points that lie inside the circle
// centered at (50, 50) with radius 20
result = kdbush.Query(50, 50, 20);
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net461 is compatible. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Templatize the tree to support any type of user data.