Well your explanation confuses me, while I understand..
distance(x1,y1,x2,y2) returns the distance in pixels between point 1 and point2
angle(x1,y1,x2,y2) returns the angle between point 1 and point 2
to get halfway between the two objects you could move something 0.5*distance() at angle()
another way would be to create an object at x=lerp(x1,x2,0.5) y=lerp(y1,y2,0.5)
If you use
dist(myObject1.x, myObject1.y, otherObject2.x, otherObject2.y) < distancetestvalue
it will check if object2 is within a radius of distancetestvalue of object1