Find Intersection of two Circles

Circle Intersection
Geogebra File

Given:

  • Points AA, BB
    • Gives us the distance dd between them
  • Radiuses:
    rA=∣AC‾∣rB=∣BC‾∣r_A = \vert\overline{AC}\vert\\ r_B = \vert\overline{BC}\vert

Steps

Finding aa

The two inner triangles give us:

  1. a2+h2=rA2a^2 + h^2 = r_A^2
  2. b2+h2=rB2b^2 + h^2 = r_B^2

Equaling by h2h^2:

rA2−a2=rB2−b2r_A^2 - a^2 = r_B^2 - b^2

Substituting b=d−ab = d - a:

rA2−a2=rB2−(d−a)2⇒rA2−a2=rB2−d2+2da−a2⇒rA2=rB2−d2+2da⇒a=rA2−rB2+d22dr_A^2 - a^2 = r_B^2 - (d - a)^2 \\ \Rightarrow r_A^2 - a^2 = r_B^2 - d^2 + 2da - a^2 \\ \Rightarrow r_A^2 = r_B^2 - d^2 + 2da \\ \Rightarrow a = \frac{r_A^2 - r_B^2 + d^2}{2d}

Calculate angle γ\gamma

Circle Intersection
Geogebra File

Calculate α\alpha:

α=arccos(arA)\alpha = arccos(\frac{a}{r_A})

Calculate β\beta from the line AB‾\overline{AB}:

β=arccos(∣xA−xB∣d)\beta = arccos(\frac{\vert x_A - x_B \vert}{d})

This will give us the angle γ\gamma towards the point C:

γ=α−β\gamma = \alpha - \beta

Calculate C:

[xCyC]=[xAyA]+rA[cos(γ)sin(γ)]\begin{bmatrix} x_C \\ y_C \end{bmatrix} = \begin{bmatrix} x_A \\ y_A \end{bmatrix} + r_A \begin{bmatrix} cos(\gamma) \\ sin(\gamma) \end{bmatrix}


Alternative: Inverse Kinematics (?)

  • γ\gamma like above: joint angle at A
  • δ\delta: joint angle at C

[xCyC]=[xAxB]+rA[cos(γ)sin(γ)]\begin{bmatrix} x_C \\ y_C \end{bmatrix} = \begin{bmatrix} x_A \\ x_B \end{bmatrix} + r_A \begin{bmatrix} cos(\gamma) \\ sin(\gamma) \end{bmatrix}

[xByB]=[xCyC]+rB[cos(δ)sin(δ)]\begin{bmatrix} x_B \\ y_B \end{bmatrix} = \begin{bmatrix} x_C \\ y_C \end{bmatrix} + r_B \begin{bmatrix} cos(\delta) \\ sin(\delta) \end{bmatrix}

Find γ\gamma and δ\delta