NaturalNeighbor 1.1.1

.NET Standard 2.0 .NET Framework 4.7.2
Install-Package NaturalNeighbor -Version 1.1.1
dotnet add package NaturalNeighbor --version 1.1.1
<PackageReference Include="NaturalNeighbor" Version="1.1.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add NaturalNeighbor --version 1.1.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: NaturalNeighbor, 1.1.1"
#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 NaturalNeighbor as a Cake Addin
#addin nuget:?package=NaturalNeighbor&version=1.1.1

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


The library focues on spatial interpolation for scattered 2D data, such as GIS data or similar.



Description :

Produces an interpolating function that can be queried at arbitrary location within interpolation boundaries. The underlying triangulation is created once and reused for subsequent queries. Supported interpolation methods : Nearest Neighbor, Linear, and Natural Neighbor

Usage :

using NaturalNeighbor;
var interp = Interpolator2d.Create(datapoints);
// interp.Method = InterpolationMethod.Nearest;
// interp.Method = InterpolationMethod.Natural (default)
// interp.Method = InterpolationMethod.Linear;

// Single lookup
var z = interp.Lookup(1.3f, 2.1f);

//Batch evaluation - single thread
interp.LookupRange(points, zvalues);

// Batch evaluation - parallel execution 
interp.LookupRange(points, zValues, System.Threading.Tasks.ParallelOptions{});


Description :

Performs planar subdivision on a set of 2D points represented by collection of Vector2. The class subdivides a plane into triangles using Delaunay's algorithm, which corresponds to the dual graph of the Voronoi diagram. The subdivision can be used for fast location of points on the plane or building special graphs.

Usage :

var subdiv = new SubDivision2d(points);

var nodeId = subdiv.FindNearest(x, y, out var pt);

if (nodeId.HasValue)
    Console.WriteLine($"Nearest point: {pt}");

foreach(var triangle in subdiv.GetDelaunayTriangles()) 
    // Process triangles

foreach(var facet in subdiv.GetVoronoiFacets())
    // Process Voronoi facets
Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net461 net462 net463 net47 net471 net472 net48
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.1.1 871 12/23/2021
1.0.5 92 12/2/2021
1.0.4 802 11/29/2021
1.0.3 83 11/29/2021
1.0.2 1,093 11/28/2021