Golden Spiral
- Consider the
golden spiral,
which often occurs in nature.
- A golden spiral can be approximated by first starting with a rectangle for which the ratio between its length and width is the
golden ratio.
This rectangle can then be partitioned into a square and a similar
rectangle and this rectangle can then be split in the same way. After
continuing this process for an arbitrary number of steps, you may
connect the corners of those squares by quarter-circles.
The result closely approximates a golden spiral.
- Write an MFC program to draw a series of rectangles and arcs to
approximate a golden spiral.