enter to close IF the line between LastPoint and FirstPoint intersects edge THEN output the intersection point ENDIF /* End Of File */