Line Clipping

From Algorithm Wiki
Jump to navigation Jump to search

Problem Description

Given a set of lines and a rectangular area of interest, the task is to remove lines which are outside the area of interest and clip the lines which are partially inside the area.

Bounds Chart

Line ClippingBoundsChart.png

Step Chart

Line ClippingStepChart.png

Improvement Table

Complexity Classes Algorithm Paper Links Lower Bounds Paper Links
Exp/Factorial
Polynomial > 3
Cubic
Quadratic
nlogn
Linear Cohen–Sutherland (1967)

Liang–Barsky (1984)

Cyrus–Beck (1978)

Nicholl–Lee–Nicholl (1987)

Fast clipping (1987)

logn Skala (1996)