Distance between points on two circles

  • Context: High School 
  • Thread starter Thread starter LucKy
  • Start date Start date
Click For Summary

SUMMARY

The discussion focuses on calculating the distance between points a2 and b2 located on two circles with radius R and centers separated by distance D, using angles α and β. The original poster attempts a proportional angle method to find β from α, then derives the distance a2_b2 through trigonometric steps involving cosine and tangent functions. A respondent corrects the assumption that α and β are proportional, instead applying the law of cosines and the intersection of a line and a circle to solve for x, the coordinate of intersection, leading to a quadratic equation solution. The final distance is computed as AC = x / cos(α) minus R, offering a more mathematically elegant and exact approach than the initial proportional method.

PREREQUISITES

  • Trigonometric functions and identities (cosine, sine, tangent, inverse tangent)
  • Law of cosines in triangle geometry
  • Analytic geometry: intersection of a line and a circle
  • Solving quadratic equations

NEXT STEPS

  • Study analytic geometry techniques for line-circle intersections
  • Review solving quadratic equations in geometric contexts
  • Explore advanced trigonometric problem solving involving multiple angles
  • Implement computational geometry algorithms for robot sensor simulation

USEFUL FOR

Robotics hobbyists simulating sensor readings, engineers working on geometric distance calculations, mathematicians interested in circle geometry, and developers implementing spatial algorithms involving circle intersections and angle computations.

LucKy
Messages
4
Reaction score
1
Hello all

I summarised my question on the attached picture
Pic.webp


I will wery appreciate if somebody can confirm:
Does my attempt to find distance a2_b2 correct? Is there simplier method?

It is not a homework, It is for my hobby project.
(I want to simulate my robot's sensor readings in some situations)

My attempt:

Step 1. Calculate ## {\angle \beta} ##:

Assume ##{\angle \beta}## is directly proportional to ##{\angle \alpha}## (NOT SURE!)

$$ \frac {\angle \beta} {\angle \alpha} = \frac {\angle b1\_O2\_b3 } {\angle a1\_O1\_a3} $$
$$ {\angle b1\_O2\_b3 }= \frac \pi 2 \text{ , } {\angle a1\_O1\_a3} = \tan^{-1}(\frac R D) $$
$$ {\angle \beta} = \frac {\angle \alpha * \frac \pi 2} {\tan^{-1}(\frac R D)} $$

Step2. Calculate distance O2_p:
$$ {O2\_p} = {R*\cos(\beta)}$$

Step3. Calculate distance O1_p
$$ {O1\_p} = {D + O2\_p} = {D + R*\cos(\beta)}$$

Step4. Calculate distance O1_b2
$$ {O1\_b2} = \frac {O1\_p} {\cos(\alpha)} = \frac {D + R*\cos(\beta)} {\cos(\alpha)}$$

Step5. (Final) Calculate distance a2_b2
$$ {a2\_b2} = {O1\_b2 - R} = \frac {D + R*\cos(\beta)} {\cos(\alpha)} - R \text{, where } {\angle \beta} = \frac {\angle \alpha * \frac \pi 2} {\tan^{-1}(\frac R D)} $$
 
Last edited:
Mathematics news on Phys.org
LucKy said:
Is there simplier method?

Two circles.webp

Note that
##y=R\sin\beta=x\sin\alpha.## Angles ##\alpha## and ##\beta## are not proportional.

Then
##\cos\beta=\sqrt{1-\sin^2\beta}=\dfrac{1}{R}\sqrt{R^2-x^2\sin^2\alpha}.##

From the law of cosines for triangle ABC
##x^2=D^2+R^2+2DR\cos\beta \implies x^2=D^2+R^2+2DR\left(\dfrac{1}{R}\sqrt{R^2-x^2\sin^2\alpha}\right).##

Solve the quadratic for ##u=x^2##. Make sure you pick the correct solution then subtract ##R## from ##\sqrt{u}##.
 
Last edited:
  • Like
Likes   Reactions: LucKy
I don’t know if this is simpler but it can be done as the intersection of a line and a circle. Note, I’m using ##x## as the standard coordinate. Referring to @kuruman ’s excellent graphic, If the origin is at A and letting D be along the x axis, the point C is the intersection of the line ##y=xtan(\alpha) ## and the circle centered at ##(D,0)## which is ##(x-D)^2+y^2=R^2##. Solve for ##x## then ##AC=\large\frac{x}{cos(\alpha)}## then just subtract ##R##.
 
  • Like
Likes   Reactions: LucKy and kuruman
bob012345 said:
I don’t know if this is simpler . . .
If it isn't simpler, it certainly is more elegant.
 
  • Like
Likes   Reactions: bob012345

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
Replies
46
Views
8K
Replies
3
Views
1K
  • · Replies 30 ·
2
Replies
30
Views
2K
  • · Replies 15 ·
Replies
15
Views
1K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 7 ·
Replies
7
Views
2K
Replies
9
Views
2K
Replies
1
Views
3K