Two New Algorithms for Line Clipping in E 2 and Their Comparison

New efficient algorithms for the line clipping by the given rectangle in E 2 are presented. The first algorithm is based on the line direction evaluation, the second one is based on a new coding technique of clipping rectangle’s vertices. It allows solving all cases more effectively. A comparison of the proposed algorithms with the Liang-Barsky algorithm and some experimental results are presented, too.