John Tran
CS647 - Image Synthesis
Spring 2003
Assignment 3 - Part 1 - Simulating a camera lens system

| Lens | Focal point 1 | Principle Plane 1 | Focal Point 2 | Principal plane 2 |
| dgauss | 136.3000018 | 35.579132 | -52.346573 | 44.838585 |
| wide | 216.763885 | 116.667374 | -30.088982 | 68.376976 |
| telephoto | 83.087273 | -16.653801 | -124.463173 | -31.136534 |
| fisheye | 566.022217 | 466.128998 | 83.785416 | 188.882965 |
I began by parsing the file and keeping two separate vectors of the lenses. One vector held the lens information from left to right and the other right to left. These are used for the ray coming from the left and the ray coming from the right, respectively.
The dislpay function draws the lenses, then shoots one ray from the left and another from the right. The ray recursively does sphere-intersection tests with the lenses (code pseudo-stolen from lrt) until it either misses or hits the last lens, in which case we determine the focal point and principle plane.