I have two points (x1,y1) and (x2,y2). I want to know whether the points are within 5 meters of one another.
You can use the below formula to find the distance between the 2 points:
distance*distance = ((x2 − x1)*(x2 - x1)) + ((y2 − y1)*(y2 - y1))