9BUILDING A CIRCLE FROM THREE POINTS
In this chapter, we’ll build an entire command line program to solve a well-known problem: finding a circle passing through three given points. You may have solved this problem graphically in high school using a ruler and compass; you may have even solved it numerically. This time, we’ll be using the computer to solve it for us and produce an SVG image with the result. We already implemented the algorithm in Chapter 6; in this chapter, we’ll use the algorithm inside an application.
It’s a simple problem, but it is good for understanding how to code a complete application. We’ll read the three input points from ...
Get Hardcore Programming for Mechanical Engineers 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.