// We have m-value data that we want to interpolate interfaceTempData { temp: number; }
constpointIndex = newPointIndexFast<TempData>(); // add lots of points pointIndex.insertLonLat(lon, lat, data); // ....
// given a point we are interested in constpoint: VectorPoint = { x:20, y: -40 }; // get a collection of points relative to the point constdata = awaitpointIndex.searchRadius(point.x, point.y, radius);
Nearest Neighbor Interpolation
Description
Finds the nearest point in the reference data to the given point and returns its value.
Usage