Slacktree¶
Slacktree offers a KD-tree like tree-structure speicalized for TPointArrays (2D Points).
Adds fast alteratives to the most popular functions found in the AND_TPA.dll FilterTPADistTPA
.
The library loaded may not work properly on Linux distors.
TPointArray.PointsInRangeOf¶
function TPointArray.PointsInRangeOf(Other: TPointArray; MinDist, MaxDist: Double): TPointArray; constref;
Returns all the points from self that are within range of any point in other. The parameters mindist and maxdist determine what “within range” means.
TPointArray.PointsInRangeOf¶
function TPointArray.PointsInRangeOf(Other: TPointArray; minDx, minDy, maxDx, maxDy: Int32): TPointArray; constref; overload;
Same as the above but lets you specify X- and Y-wise min & max distance separately.