JOINING TWO LINES WITH A CIRCULAR ARC FILLET
Robert D. Miller, East Lansing, Michigan
Publisher Summary
This chapter presents an algorithm to find the beginning angle and the angle subtended by the arc and the direction in which the arc is drawn. The method described in the chapter involves finding the equation in the form ax + by + c = 0 for each line. The center of the constructed arc, Pc, must lie at a distance r from both lines. The signed distance d1 is determined from I1 to the midpoint of I2 and d2 from I2 to the midpoint of I1. The midpoints are used because, in practice, one point may be common to both lines. The signs of d1 and d 2 determine on which sides of the respective lines the arc center Pc resides. The signed distances ...
Get Graphics Gems III (IBM Version) now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.