RosettaCodeData/Task/Problem-of-Apollonius/00DESCRIPTION
2016-12-05 22:15:40 +01:00

7 lines
654 B
Text

[[File:Apollonius.png|400px|Two solutions to the problem of Apollonius|right]]
;Task:
Implement a solution to the Problem of Apollonius   ([[wp:Problem_of_Apollonius|description on Wikipedia]])   which is the problem of finding the circle that is tangent to three specified circles.   There is an [[wp:Problem_of_Apollonius#Algebraic_solutions|algebraic solution]] which is pretty straightforward.
The solutions to the example in the code are shown in the image (below and right).   The red circle is "internally tangent" to all three black circles, and the green circle is "externally tangent" to all three black circles.
<br><br>