Optics Programming

Here are some images I made as a programming exercise. Given the angle of incidence and the index of refraction of a particular medium, calculate the surface normal and angle of refraction (or if refraction is theoretically impossible at the angle of incidence, calculate the angle of reflection)

Scroll down for more images

















Please do not distribute these images without permission. Copyright 2007 Ivan Freyman FreymanArt.com