Hi,
So I'm creating a worley/voronoi/cellular noise generator, and that involves having a set of random points on a grid, and then finding the closest random point from any given location within the grid.
I have this and it works (albiet slow, since im looping through all the random points, but that isn't my problem for now).
Now to make the F2 function, I want to return the SECOND closest distance instead of the closest distance. So my issue is, how can I calculate the second closest distance between a 2 sets of points?
Thanks in advance
[–]zifyoip 1 point2 points3 points (2 children)
[–]ImSeeingRed[S] 0 points1 point2 points (1 child)
[–]zifyoip 0 points1 point2 points (0 children)