This browser does not have a Java Plug-in.
Get the latest Java Plug-in here.


CS3451: Project 2 (individual), Due Feb 1 before class as a web page with applet and explanations.

The applet must compute and display in realtime point Q, where the ray from A to B first hits the boundary of the polygon and also the reflected ray direction vector R (shown at Q, scaled by 50).
All you need to do is add a dozen lines in the tab actions. Your display should look like the image below.

For extra credit, trace the ray after the bouce, to the second bounce, and to the third (if they exist).

Built by Jarek Rossignac with Processing. Source code: main UI actions colors geo points polygon