Basic Geometric Modeling Tools (Basic Computer Graphics) Part 4

Circle Formulas

Formula. Lettmp3189-196_thumb[2]_thumbbe noncollinear points intmp3189-197_thumb[2][2]and tmp3189-198_thumb[2][2]The unique circle that contains the points pi has centertmp3189-199_thumb[2][2]where


tmp3189-204_thumb[2][2]

and radius r, where

(a) Region subtended by curve

(a) Region subtended by curve

(b) Approximation to ith interval

(b) Approximation to ith interval

Circle through three points.

Figure 6.20. Circle through three points.

tmp3189-208_thumb[2][2]

In the special case wheretmp3189-209_thumb[2][2]are    points    in    the    plane,    these    formulas    can be simplified. Lettmp3189-210_thumb[2][2]Then

tmp3189-213_thumb[2][2]

Proof. We shall give essentially two proofs for this formula. We give a geometric argument in the general case and an algebraic one in the planar case. In either case, the solution to this problem will be easier if we first move the point p1 to the origin and solve the problem of finding the center c of the circle through the points 0, a, and b. Consider the following planes and their point-normal equations:

plane

equation

the plane X containing the points 0, a, and b (and c)

tmp3189-214

the plane X1 that is the perpendicular bisector of the segment [0,a]

tmp3189-215

the plane X2 that is the perpendicular bisector of the segment [0,b]

tmp3189-216

Basic geometric facts about circles imply that c is the intersection of these three planes X, X1, and X2. See Figure 6.20 where we have identified X with the xy-plane. Letting x be 0 in the equation for X and c in the other two equations gives us that

tmp3189-217_thumb[2][2]

Applying Formula 6.5.6 for the intersection of three planes now gives us our formula (6.32). The formula for the radius r is gotten by substituting formula (6.32) into the equationtmp3189-218_thumb[2][2]and    simplifying.

Next, assume that our points pi lie in the xy-plane. The equation for the circle with center c and radius r is

tmp3189-220_thumb[2][2]

Sincetmp3189-221_thumb[2][2]equation    (6.34)    reduces    to

tmp3189-223_thumb[2][2]

Substituting points a and b into equation (6.35) gives two equations in two unknowns c1 and c2:

tmp3189-224_thumb[2][2]

The solution to this system of equations leads to the formula (6.33). This finished the proof of Formula 6.8.1.

The next two formulas are useful in blending computations.

Formula. Let L1 and L2 be intersecting lines in the plane defined by equations

tmp3189-225_thumb[2][2]

respectively. The circles of radius r that are tangent to L1 and L2 have centers (d,e) defined by

tmp3189-226_thumb[2][2]

Proof. From Figure 6.21(a) one can see that there are four solutions in general. Let L1/ and L2′ be lines that are parallel to and a distance r from lines L1 and L2, respectively. See Figure 6.21(b). There are four such pairs of lines and it is easy to see that the intersection of these lines defines the centers (d,e) of the circles we seek. Now the lines L1/ and L2′ are a distance r closer or further to the origin than the lines L1 and L2. Therefore, it is easy to see from equation (6.24) that the equations for L1/ and L2′ are

tmp3189-227_thumb[2][2]

Solving equations (6.37) gives our answer.

Circles of fixed radius tangent to two lines.

Figure 6.21. Circles of fixed radius tangent to two lines.

Lines through a point tangent to a circle.

Figure 6.22. Lines through a point tangent to a circle.

Formula. Let A be a point and C a circle with center B and radius r. Assume that |AB| > r. There are two lines through A that are tangent to C and they intersect C in the points D± defined by

tmp3189-230_thumb[2][2]

where u and v are the orthonormal vectors

tmp3189-231_thumb[2][2]

Proof. Figure 6.22(a) shows the two lines L and L’ that pass through A and are tangent to C. By switching to the coordinate system defined by the frame (A,u,v) we may assume that A = (0,0) and B = (b,0). Let D = (d1,d2). See Figure 6.22(b). The following equations are satisfied by D:

tmp3189-232_thumb[2][2]

In other words,

tmp3189-233_thumb[2][2]

If follows that

tmp3189-234_thumb[2][2]

Since b corresponds to |AB| in the original problem, our solution translates into the stated one in world coordinates.

Formula. Consider two circles in the plane centered at points A and B with radii r1 and r2, respectively. Assume thattmp3189-235_thumb[2][2]Lettmp3189-236_thumb[2][2]be

the points where the four lines Li that are tangent to both of these circles intersect the circles. See Figure 6.23(a). Then

tmp3189-239_thumb[2][2]

wheretmp3189-240_thumb[2][2]and    u    and    v    are the orthonormal vectors

Lines tangent to two circles.

Figure 6.23. Lines tangent to two circles.

tmp3189-243_thumb[2][2]

Proof. Note that the associated pairs of linestmp3189-244_thumb[2][2]intersect    on    the    line through the points A and B. We again switch to the coordinate system defined by the frame (A,u,v) and assume thattmp3189-245_thumb[2][2]See Figure 6.23(b). Let

tmp3189-246_thumb[2][2]be the point where L1 intersects the x-axis. Then

tmp3189-250_thumb[2][2]

Because the triangles ADF and BEF are similar, we get that

tmp3189-251_thumb[2][2]

Case 1:tmp3189-252_thumb[2][2]In    this    case    equation    (6.39)    implies    that

tmp3189-254_thumb[2][2]

Case 2:tmp3189-255_thumb[2][2]In    this    case    equation    (6.38)    implies    that

tmp3189-257_thumb[2][2]

In either case, since we now know F, we can now use Formula 6.8.3 to compute tmp3189-258_thumb[2][2]For example, in Case 1,

tmp3189-260_thumb[2][2]

Note that to use Formula 6.8.3 we must use the frametmp3189-261_thumb[2][2]It is now a simple matter to rewrite this formula in the form stated earlier.

Formula. Consider two circles in the plane centered at points A and B with radii r1 and r2, respectively. Assume thattmp3189-263_thumb[2][2]The circles of

radius r that are tangent to these circles have center C defined by

tmp3189-265_thumb[2][2]

where

Circles of fixed radius tangent to two circles.

Figure 6.24. Circles of fixed radius tangent to two circles.

tmp3189-267_thumb[2][2]

Proof. We can see from Figure 6.24(a) that there are precisely two circles of radius r which are tangent to both circles. What we have to do is find the intersection of two circles: one has center A and radiustmp3189-268_thumb[2][2]and the other has center B and radius tmp3189-269_thumb[2][2]

We switch to the coordinate system defined by the frame (A,u,v). Let A = (0,0) and B = (b,0). See Figure 6.24(b). We must solve the equations

tmp3189-272_thumb[2][2]

We get that

tmp3189-273_thumb[2][2]

This translates to the desired formula in world coordinates since b corresponds to |AB|.

This concludes our list of formulas involving circles. Other formulas can be found in [Chas78] and [BowW83].

Next post:

Previous post: