A Raytracer in a Business Card

A raytracer in the back of a business card! Here is the code:

And the output:

Kudos to Andrew Kensler, and thanks to Fabien Sanglard for the detailed explanation.