Author: Derek Tatum This applet draws a triangle and an edge on the screen (5 vertices in all) , and allows you to adjust the vertices in any way you like. When either of the 2 vertices of the edge are close to an edge of the triangle, they turn cyan (light-blue). If the edge crosses with the triangle, a red line is drawn from the point of intersection to the point that is on the inside of the triangle. The point of intersection is colored orange. There are other various scenarios that may come into play which are described in the report.pdf file. Report in .pdf See the applet Download .zip file of source code |