This chapter includes geometric problems. Some ask you to calculate values such as π or the area below a curve. Others demonstrate useful techniques such as Monte Carlo algorithms. Finally, some are directly useful if you need to perform geometric operations such as drawing arrowheads or finding intersections between line segments.
Many of these problems have intuitive graphical purposes. In those cases, the solutions may include graphical components that draw the problem and its solution. The graphics code usually isn't necessary to solve the problems, however; it just makes visualizing the solution easier, so I won't describe that code in detail. Download the solutions to see all of the details.