[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference rusure::math

Title:Mathematics at DEC
Moderator:RUSURE::EDP
Created:Mon Feb 03 1986
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:2083
Total number of notes:14613

65.0. "Common tangent to two circles" by JACOB::D_RABAHY () Wed May 09 1984 15:22

  This problem came up recently when my friend Geoff Schultz was attempting to
design and implement the board game 'Speed Circuit'.  His design specified that
the race course should be derived from a set of turn centers and corresponding
radii.  The course would then be displayed graphically. 

  To derive the race course, each pair of adjacent turns need to be connected
by straight-aways.  Each straight-away corresponds to a tangent common to the
two circles given by the turn centers and radii.  The problem is to calculate
the coordinates of the tangent points.
T.RTitleUserPersonal
Name
DateLines
65.1TURTLE::GILBERTThu May 10 1984 18:2117
Let r0 and r1 be the radii, and let d be the distance between the centers of
the circles.  Note that there may be 0, 1, 2, 4, or an infinite number of
tangent lines between the two circles.  If d=0, there are either an infinite
number of solutions, or no solutions, depending on whether r0=r1.

In the remaining solutions, the angle (theta) between the tangent line and
the line connecting the centers of the circles must satisfy either:

	sin(theta) = (r1-r0)/d, or	(1)
	sin(theta) = (r1+r0)/d.		(2)

In equation (1), the race course would go around the two circles in the same
direction (both clockwise, or both counter-clockwise), and in equation (2),
the course would go around the circles in different directions (one clockwise,
and one counter-clockwise).

Given a value of theta, the points of tangency are easily computed.
65.2Left out one possible caseDSSDEV::CROCKERTue Jul 13 1993 16:585
    There can also be exactly three common tangent lines
    between the two circles.
    
    	- Ben
    
65.3re .2: Better late than never!AUSSIE::GARSONnouveau pauvreWed Jul 14 1993 23:470