Faced a task - there are quite a few (well, say, tens of thousands) points on the plane (maybe later they will be in three-dimensional space, but so far the question of the plane). It is required many times to solve a subtask - to choose for iterations points of a set that are at a distance of no more than L
from some point (generally speaking, not included in this set of points).
Tell me what data structure to use, so as not to go through all the points in a row. I can not even figure out how to properly GET what exactly to look for - how to formulate a request.
The working language is C ++.
L
Filling the matrix with new points will also be easy. - alexis031182