Re: Determining possible locations from two points
I had Mathematica find the analytical solution to your question and it's remarkably ugly (like, when simplified it's half a page long). If you're doing this for some numerical program, you could use an iterative method to solve the function f(x1, y1) = (x3-x2)(2x1+x2+x3) + (y3-y2)(2y1+y2+y3) = 0,* though you'd have to add another constraint in there. Perhaps you could simply solve the initial system iteratively.
The return Mathematica gives, if you're interested, is attached. The format should be pretty readable, if somewhat puzzling the first time.
Finally, you could use the following to find a sequence of back substitutions (which would presumably reproduce Mathematica's brute force answer). Take the line connecting the two circle's centers. On the midpoint, make another line perpendicular to the first. It must intersect these two points. Solve for x1 in terms of y1 using the line you just generated, and substitute that into either distance equation (Eq. 1 or 2 below). Solve the resulting quadratic for x1, and resubstitute for y1. Bam, you're done.
Re: Determining possible locations from two points
Are you saying that the two triangles drawn are similar? That's definitely true since the lines are perpendicular. But, the constant of proportionality between the two triangles changes depending on the radius of the circles. Finding that constant and then interpolating along that line is the challenging part in my mind, which is effectively what my "Finally..." paragraph said. I'm pretty sure you need a quadratic in there somewhere, though I might be wrong.
The time you enjoy wasting is not wasted time. Bertrand Russell
Re: Determining possible locations from two points
I have updated the image with additional labels.
The length of BC is given, as are the locations of A and B.
M is the midpoint of AB, and N is obviously (Bx, Ay).
AB = Sqr(AN2+BN2)
BM = AB/2
MC = Sqr(BC2-BM2)
MC/AB = MO/BN = CO/AN
Cx = Mx - MO
Cy = My + CO
Dx = Mx + MO
Dy = My - CO
Note that this still works if AC <> BC, though a bit more work needs to be done to get the location of M.
Re: Determining possible locations from two points
What the are you talking about?
That does sound like an easy to solve triangle problem!
The two distances that are stated are two sides of the triangle, the connecting line of those known points is the third. What you don't have are the angles, but that is an standard triangle problem (called SSS!)
BTW, you will find either no point (the circles of the distances given do not touch), one point (the circles do just touch, in this case the sum of the distances is equal to the distance of the given points) and you can have two points!
You're welcome to rate this post!
If your problem is solved, please use the Mark thread as resolved button Wait, I'm too old to hurry!
Re: Determining possible locations from two points
You don't need the angles. My image illustrates the right-triangle geometry of the problem. The solution requires only the Pythagorean theorem, along with proof of similarity.
Re: Determining possible locations from two points
I can't see how you could do it using Logos illustration without the angles. That's basically a rotation problem. You're rotating the x-y axis so that the x-axis lies on the line connecting points A and B. The solution then will depend upon the angle between the original x-axis and the rotated one.
Re: Determining possible locations from two points
Yup, those equations Logophobic gave in the first half of post #5 can be solved easily enough to give the coordinates of intersection. I would be very, very surprised if, when completely back substituted and simplified, they weren't equivalent to the awful answers Mathematica gave from my first post. It also does involve a quadratic (the two applications of the Pythagorean Theorem), though solving it in this case was trivial. The geometric approach is nice and pretty there, good idea .
I'm not really sure what you were doing in the second half of that post, though, Logo. Your expressions presuppose that AMC and BMC are still right triangles when AC<>BC. They're not; you'd need to add an extra term by applying the Law of Cosines instead. I'm pretty sure the geometric approach in that case would get awful.
The time you enjoy wasting is not wasted time. Bertrand Russell
Re: Determining possible locations from two points
Originally Posted by jemidiah
I'm not really sure what you were doing in the second half of that post, though, Logo. Your expressions presuppose that AMC and BMC are still right triangles when AC<>BC. They're not;
I disagree, even if AC and BC have different values, the line connecting c and will always be perpendicular to AB. You probably missed the point that D would be moved accordingly!
You're welcome to rate this post!
If your problem is solved, please use the Mark thread as resolved button Wait, I'm too old to hurry!
Re: Determining possible locations from two points
AMC and BMC are right triangles by definition: MC is an altitude of ABC. Point M is not necessarily the midpoint of AB, though this is the case when AC = BC. I was showing how to get the length of BM, with which we can determine the coordinates of point M. Note that when AC = BC, the equation simplifies to BM = AB/2.
Re: Determining possible locations from two points
We may well have. Or, they might not have checked back on this board; happens sometimes. @OP: please feel free to ask for more explanations if you happen to read this and were anxious or something.
The time you enjoy wasting is not wasted time. Bertrand Russell