So we have two graphs overlapping with the Show[] function, one is a network of connected points, and the other displays three circles over the top of the points. I'm trying to check which points lie within the circles, and put them into separate lists. I first tried to use the distance equation, checking if the distances from the nodes to the centre of the circle is less than the radius:
For[m = 1, m <= Length[coordinates],
nodex = Part[Part[coordinates, m], 1];
nodey = Part[Part[coordinates, m], 2];
circlecheck1 =
distanceFunction[Part[circle1Centre, 1], nodex,
Part[circle1Centre, 2], nodey];
If[circlecheck1 <= circle1Radius,
AppendTo[inCircle1, {nodex, nodey}]]; m = m + 1]
(Note that all of the functions and Part[] variables function just fine in other parts of the code, so I'm certain this is not the issue.)
However, I ran into a problem: since we're using the Show[] function, it seems that the two "graphs" have different axes size, and so my assumption that they will lie on the same axis and obey the distance function is wrong.
Is there a way to either check whether the circles overlap anyway, or to force the axes to share the same length?