1 | initial version |
You actually need to define close, since that has a relative meaning. Do you mean smaller then 5 pixels? Smaller then 50 pixels?
What you basically want to do is look into distance calculation between points. What you could do is determine the center point of both groups of points and then do an euclidean distance between them. You can easily program this yourself.