Tangent circles (source code)

= Tangent circles

Two distinct <circles> are tangent when they meet at exactly one point. For external tangency the distance between centers is the sum of the <radii>; for internal tangency it is their absolute difference. These relations turn many <circle packing> problems into exact distance equations.