As someone with basic algebra knowledge, I am having trouble understanding Paul Bourke's explanation on "Intersection of two circles" on this page.
The specific part that I don't understand is where the last three equations come from:
1) $P_2 = P_0 + a \cdot \dfrac{ P_1 - P_0 } {d}$
2) $x_3 = x_2 \pm h \cdot\dfrac{ y_1 - y_0 }{d}$
3) $y_3 = y_2 \mp h\cdot \dfrac{ x_1 - x_0} {d}$
Can anyone help shed some light on how they are derived? Or at the very least point me in the right direction?
All segment lengths are considered as positive. You have to add in the negative signs somewhere when necessary.
$x_3 = x_2 + k$
$= x_2 + h \sin \theta$ ... [from the smallest triangle]
$= x_2 + h \cdot \dfrac {y_1 – y_0}{d}$ ... [from the largest triangle]
It is part of the statement #2. Other statements can be proved in a similar fashion.