General Line Segment Intersection

Algorithm in pseudo code and How to use this Applet